Hi,

The patch below changes the manage() function so that it calls
the getclient() function rather then using its own search loop.

Comments are welcome.

Cheers,
/Martin

diff -r 65c37b4be9cb dwm.c
--- a/dwm.c     Mon Aug 04 17:39:36 2008 +0100
+++ b/dwm.c     Wed Aug 13 23:45:54 2008 +0200
@@ -904,7 +904,7 @@
        grabbuttons(c, False);
        updatetitle(c);
        if((rettrans = XGetTransientForHint(dpy, w, &trans) == Success))
-               for(t = clients; t && t->win != trans; t = t->next);
+               t = getclient(trans);
        if(t)
                c->tags = t->tags;
        else

Reply via email to