summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dwm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dwm.c b/dwm.c
index d0239f4..8591a7d 100644
--- a/dwm.c
+++ b/dwm.c
@@ -865,7 +865,6 @@ killclient(const Arg *arg) {
865void 865void
866manage(Window w, XWindowAttributes *wa) { 866manage(Window w, XWindowAttributes *wa) {
867 Client *c, *t = NULL; 867 Client *c, *t = NULL;
868 Status rettrans;
869 Window trans; 868 Window trans;
870 XWindowChanges wc; 869 XWindowChanges wc;
871 870
@@ -903,14 +902,14 @@ manage(Window w, XWindowAttributes *wa) {
903 XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask); 902 XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask);
904 grabbuttons(c, False); 903 grabbuttons(c, False);
905 updatetitle(c); 904 updatetitle(c);
906 if((rettrans = XGetTransientForHint(dpy, w, &trans)) == Success) 905 if(XGetTransientForHint(dpy, w, &trans))
907 t = getclient(trans); 906 t = getclient(trans);
908 if(t) 907 if(t)
909 c->tags = t->tags; 908 c->tags = t->tags;
910 else 909 else
911 applyrules(c); 910 applyrules(c);
912 if(!c->isfloating) 911 if(!c->isfloating)
913 c->isfloating = (rettrans == Success) || c->isfixed; 912 c->isfloating = trans || c->isfixed;
914 if(c->isfloating) 913 if(c->isfloating)
915 XRaiseWindow(dpy, c->win); 914 XRaiseWindow(dpy, c->win);
916 attach(c); 915 attach(c);