Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
handling WM_STATE seems to make DnD in gtk/qt apps working, well let's handle this...
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
4f07789
..
418e986
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) {
-
active
screen = True;
+
sel
screen = True;
for(c = stack; c && !isvisible(c); c = c->snext);
focus(c);
}
for(c = stack; c && !isvisible(c); c = c->snext);
focus(c);
}
@@
-269,7
+269,7
@@
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) {
-
active
screen = False;
+
sel
screen = False;
focus(NULL);
}
}
focus(NULL);
}
}