|
|
@ -234,8 +234,6 @@ enternotify(XEvent *e) { |
|
|
|
focus(c); |
|
|
|
focus(c); |
|
|
|
else if(ev->window == root) { |
|
|
|
else if(ev->window == root) { |
|
|
|
issel = True; |
|
|
|
issel = True; |
|
|
|
XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); |
|
|
|
|
|
|
|
if(sel) |
|
|
|
|
|
|
|
focus(sel); |
|
|
|
focus(sel); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -273,7 +271,6 @@ leavenotify(XEvent *e) { |
|
|
|
XCrossingEvent *ev = &e->xcrossing; |
|
|
|
XCrossingEvent *ev = &e->xcrossing; |
|
|
|
|
|
|
|
|
|
|
|
if((ev->window == root) && !ev->same_screen) { |
|
|
|
if((ev->window == root) && !ev->same_screen) { |
|
|
|
if(sel) |
|
|
|
|
|
|
|
focus(NULL); |
|
|
|
focus(NULL); |
|
|
|
issel = False; |
|
|
|
issel = False; |
|
|
|
} |
|
|
|
} |
|
|
|