X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/b233089815367983e07939b2aabb999fdc359f91..a5cb80b86cdedb8cd1f3a02de47f204bd174f649:/event.c diff --git a/event.c b/event.c index e0718d3..418e986 100644 --- 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) { - issel = True; + selscreen = True; 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) { + selscreen = False; focus(NULL); - issel = False; } }