X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=event.c;h=c66aa72b8053c47fe6ac799becdb7cd23cd27f8e;hb=28ffff801bb0137ec3fe4093afc4fb29784b17ec;hp=e0718d3fb2ffe7b46223cbc24d33eae3dbfd4178;hpb=b233089815367983e07939b2aabb999fdc359f91;p=dwm.git diff --git a/event.c b/event.c index e0718d3..c66aa72 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; } } @@ -308,10 +308,6 @@ propertynotify(XEvent *e) { if(ev->state == PropertyDelete) return; /* ignore */ if((c = getclient(ev->window))) { - if(ev->atom == wmatom[WMProtocols]) { - c->proto = getproto(c->win); - return; - } switch (ev->atom) { default: break; case XA_WM_TRANSIENT_FOR: