about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-11 13:02:22 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-11 13:02:22 +0200
commit005362043d8b0bbf856f301c231d4f10c519b8c4 (patch)
tree3901197bc7ec4ad48613683c34516c2fa8c6542e /event.c
parent16c67f32d62849792c8e6d4fdec22a1896f9c279 (diff)
downloaddwm-005362043d8b0bbf856f301c231d4f10c519b8c4.tar.gz
changed how manage client works
Diffstat (limited to 'event.c')
-rw-r--r--event.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/event.c b/event.c
index 909012d..870ed4a 100644
--- a/event.c
+++ b/event.c
@@ -159,12 +159,8 @@ maprequest(XEvent *e)
 		return;
 	}
 
-	/*if(!client_of_win(ev->window))*/
-		/*manage(create_client(ev->window, &wa));*/
-	XMapRaised(dpy, ev->window);
-	XMoveResizeWindow(dpy, ev->window, rect.x, rect.y, rect.width, rect.height - barrect.height);
-	XSetInputFocus(dpy, ev->window, RevertToPointerRoot, CurrentTime);
-	XFlush(dpy);
+	if(!getclient(ev->window))
+		manage(ev->window, &wa);
 }
 
 static void
@@ -185,11 +181,9 @@ propertynotify(XEvent *e)
 static void
 unmapnotify(XEvent *e)
 {
-#if 0
 	Client *c;
 	XUnmapEvent *ev = &e->xunmap;
 
-	if((c = client_of_win(ev->window)))
-		destroy_client(c);
-#endif
+	if((c = getclient(ev->window)))
+		unmanage(c);
 }
config.h' href='/acidbong/suckless/dwm/commit/config.arg.h?h=4.5&id=a73a88280681acdab047bd11a9ba77d97d6a0b72'>a73a882 ^
b38905b ^
a73a882 ^

b355755 ^




a73a882 ^






b355755 ^









a73a882 ^








d41b232 ^
a73a882 ^
b355755 ^
d41b232 ^
b355755 ^


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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67