Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
small changes
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
2e021d5
..
4f07789
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-230,7
+230,7
@@
enternotify(XEvent *e) {
if((c = getclient(ev->window)) && isvisible(c))
focus(c);
else if(ev->window == root) {
if((c = getclient(ev->window)) && isvisible(c))
focus(c);
else if(ev->window == root) {
-
issel
= True;
+
activescreen
= True;
for(c = stack; c && !isvisible(c); c = c->snext);
focus(c);
}
for(c = stack; c && !isvisible(c); c = c->snext);
focus(c);
}
@@
-269,8
+269,8
@@
leavenotify(XEvent *e) {
XCrossingEvent *ev = &e->xcrossing;
if((ev->window == root) && !ev->same_screen) {
XCrossingEvent *ev = &e->xcrossing;
if((ev->window == root) && !ev->same_screen) {
-
issel
= False;
- focus(
sel
);
+
activescreen
= False;
+ focus(
NULL
);
}
}
}
}