about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'event.c')
-rw-r--r--event.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/event.c b/event.c
index a9d2fbb..a809511 100644
--- a/event.c
+++ b/event.c
@@ -235,7 +235,6 @@ enternotify(XEvent *e) {
 	else if(ev->window == root) {
 		issel = True;
 		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
-		drawall();
 	}
 }
 
@@ -272,10 +271,8 @@ static void
 leavenotify(XEvent *e) {
 	XCrossingEvent *ev = &e->xcrossing;
 
-	if((ev->window == root) && !ev->same_screen) {
+	if((ev->window == root) && !ev->same_screen)
 		issel = False;
-		drawall();
-	}
 }
 
 static void
@@ -329,7 +326,8 @@ propertynotify(XEvent *e) {
 		}
 		if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
 			updatetitle(c);
-			drawclient(c);
+			if(c == sel)
+				drawstatus();
 		}
 	}
 }
al.cc?h=hlt&id=f59ccc4652bfdb7faf7d77a1685e795342e28fa2'>^
897ae8c1 ^

192d59d3 ^

385d3080 ^
f40137f1 ^
263e6b2a ^
f40137f1 ^
263e6b2a ^
385d3080 ^

e06dbec0 ^
385d3080 ^






b24eb476 ^
385d3080 ^

5937f1af ^
3473c63a ^
af023b32 ^
0f2781f8 ^
3473c63a ^




385d3080 ^

b24eb476 ^
385d3080 ^

1b76245c ^
263e6b2a ^
385d3080 ^

dfc6e268 ^



1ead3562 ^
897ae8c1 ^
192d59d3 ^

dfc6e268 ^
5f98a10c ^

dfc6e268 ^





385d3080 ^

af023b32 ^

385d3080 ^
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82