applied cleanup from M. Hurton and S. Nagy
authorPremysl Hruby <dfenze@gmail.com>
Thu, 14 Aug 2008 12:36:49 +0200
changeset 1320 a63cb246f35c
parent 1319 fb29ceb5932a
child 1321 bca7a556aa03
applied cleanup from M. Hurton and S. Nagy
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