# HG changeset patch # User Premysl Hruby # Date 1218710209 -7200 # Node ID a63cb246f35ca6f97cdc888003defae112930d1b # Parent fb29ceb5932acfebdaaae29456803cce4816fdc8 applied cleanup from M. Hurton and S. Nagy diff -r fb29ceb5932a -r a63cb246f35c dwm.c --- a/dwm.c Tue Aug 12 21:24:40 2008 +0200 +++ b/dwm.c Thu Aug 14 12:36:49 2008 +0200 @@ -903,8 +903,8 @@ 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