aboutsummarylogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorPremysl Hruby2008-08-14 12:36:49 +0200
committerPremysl Hruby2008-08-14 12:36:49 +0200
commitfe76dd6e4a3b5d930053ec25189dccbdb44bdb39 (patch)
treeb8656dc53ee5e7ed4d57ba2e58e58cbbb8dbffba /dwm.c
parent6a8e938a991246465c638dda32576bf479e9b571 (diff)
downloadaur-fe76dd6e4a3b5d930053ec25189dccbdb44bdb39.tar.gz
applied cleanup from M. Hurton and S. Nagy
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index e3b883318672..d0239f467160 100644
--- a/dwm.c
+++ b/dwm.c
@@ -903,8 +903,8 @@ manage(Window w, XWindowAttributes *wa) {
XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask);
grabbuttons(c, False);
updatetitle(c);
- if((rettrans = XGetTransientForHint(dpy, w, &trans) == Success))
- for(t = clients; t && t->win != trans; t = t->next);
+ if((rettrans = XGetTransientForHint(dpy, w, &trans)) == Success)
+ t = getclient(trans);
if(t)
c->tags = t->tags;
else