[dwm] [patch] Minor code cleanup, part 2

From: Martin Hurton <martin.hurton_AT_gmail.com>
Date: Thu, 14 Aug 2008 00:32:21 +0200

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
Received on Wed Aug 13 2008 - 22:32:21 UTC

This archive was generated by hypermail 2.2.0 : Wed Aug 13 2008 - 22:36:04 UTC