about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPremysl Hruby <dfenze@gmail.com>2008-08-14 12:36:49 +0200
committerPremysl Hruby <dfenze@gmail.com>2008-08-14 12:36:49 +0200
commit0ffa6d13939443a84a732f111d483c233b529bbf (patch)
tree142aed232e57905e719f5718c8adb55500043d2e
parent15ce1436203c1400452a3bd789ac9e1775f19341 (diff)
downloaddwm-0ffa6d13939443a84a732f111d483c233b529bbf.tar.gz
applied cleanup from M. Hurton and S. Nagy
-rw-r--r--dwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index e3b8833..d0239f4 100644
--- a/dwm.c
+++ b/dwm.c
@@ -903,8 +903,8 @@ manage(Window w, XWindowAttributes *wa) {
 	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
k?h=master&id=ba59bc8b9fdc828db5472d4e95ab2b1c248ce3c6'>ba59bc8 ^
d7e1708 ^
7b5638f ^
1076f2b
7b5638f ^


a73a882 ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27