diff options
| author | Premysl Hruby <dfenze@gmail.com> | 2008-08-14 22:35:52 +0200 |
|---|---|---|
| committer | Premysl Hruby <dfenze@gmail.com> | 2008-08-14 22:35:52 +0200 |
| commit | 06f7eed103057e55201e143fd319afd4bd410bdb (patch) | |
| tree | 602b49bbb0b3c00a7320a8f1f1ba1f93ac2a1e3b | |
| parent | applied cleanup from M. Hurton and S. Nagy (diff) | |
| download | dwm-06f7eed103057e55201e143fd319afd4bd410bdb.tar.gz dwm-06f7eed103057e55201e143fd319afd4bd410bdb.zip | |
fix of XGetTransientForHint in manage()
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -865,7 +865,6 @@ killclient(const Arg *arg) { | |||
| 865 | void | 865 | void |
| 866 | manage(Window w, XWindowAttributes *wa) { | 866 | manage(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); |
