[hackers] [dwm] applied cleanup from M. Hurton and S. Nagy || Premysl Hruby

From: <hg_AT_suckless.org>
Date: Thu, 14 Aug 2008 10:40:58 +0000 (UTC)

changeset: 1320:a63cb246f35c
tag: tip
user: Premysl Hruby <dfenze_AT_gmail.com>
date: Thu Aug 14 12:36:49 2008 +0200
files: dwm.c
description:
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
Received on Thu Aug 14 2008 - 10:40:58 UTC

This archive was generated by hypermail 2.2.0 : Thu Aug 14 2008 - 10:48:06 UTC