X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/3b18f17d4d4f2d7502f52346cbd158b7120fd835..b1c9f5f1447846cf75b0184445062b1c30753452:/event.c diff --git a/event.c b/event.c index 75c3fa0..c679f9c 100644 --- a/event.c +++ b/event.c @@ -270,8 +270,11 @@ static void leavenotify(XEvent *e) { XCrossingEvent *ev = &e->xcrossing; - if((ev->window == root) && !ev->same_screen) + if((ev->window == root) && !ev->same_screen) { issel = False; + if(sel) + XSetWindowBorder(dpy, sel->win, dc.norm[ColBorder]); + } } static void