X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/f8181f64e2ba4fca4e85036c48cf90a2151794fc..a542bdf658e9fce2034583b8a3e439430be9b5a5:/event.c?ds=inline diff --git a/event.c b/event.c index a809511..c679f9c 100644 --- a/event.c +++ b/event.c @@ -240,7 +240,6 @@ enternotify(XEvent *e) { static void expose(XEvent *e) { - Client *c; XExposeEvent *ev = &e->xexpose; if(ev->count == 0) { @@ -271,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