X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=event.c;h=4f0778958c20109e73f306f5fadc79d07e03eaf4;hb=c8a12a0852a9befbf5a073910e8b0291914f80ab;hp=2e021d58271ae227e858e40611ef7ae2188a9531;hpb=fcd98308ba65c8872b485ac7f1800841b0a29e5c;p=dwm.git diff --git a/event.c b/event.c index 2e021d5..4f07789 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; + activescreen = 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) { - issel = False; - focus(sel); + activescreen = False; + focus(NULL); } }