about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-19 15:05:07 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-19 15:05:07 +0100
commit201c56f6d36e7f895c465f534fdb90e3d9e4ca18 (patch)
tree25c63748256f145a149800a9d6546d5fd07d71e4
parent1e051d71f509ce0c658170e936896b58b9065f90 (diff)
downloaddwm-201c56f6d36e7f895c465f534fdb90e3d9e4ca18.tar.gz
leavenotify also don't needs the check
-rw-r--r--event.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/event.c b/event.c
index 20ab599..0133889 100644
--- a/event.c
+++ b/event.c
@@ -234,9 +234,7 @@ enternotify(XEvent *e) {
 		focus(c);
 	else if(ev->window == root) {
 		issel = True;
-		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
-		if(sel)
-			focus(sel);
+		focus(sel);
 	}
 }
 
@@ -273,8 +271,7 @@ leavenotify(XEvent *e) {
 	XCrossingEvent *ev = &e->xcrossing;
 
 	if((ev->window == root) && !ev->same_screen) {
-		if(sel)
-			focus(NULL);
+		focus(NULL);
 		issel = False;
 	}
 }
span class='oid'>b2e98bf ^
3791ec0 ^
650a1fb ^

3791ec0 ^
650a1fb ^

3791ec0 ^
6458d72 ^
3791ec0 ^




























0e5c819 ^
6458d72 ^



7e43369 ^
ce846e9 ^


3791ec0 ^

650a1fb ^
3791ec0 ^
650a1fb ^
0e5c819 ^
650a1fb ^
3791ec0 ^
650a1fb ^



3791ec0 ^
650a1fb ^
6458d72 ^
7faa8a9 ^


6458d72 ^





650a1fb ^

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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106