X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=event.c;h=a8095116e638f3bf6b6a234df411ebde49836dc1;hp=a9d2fbbf78d260401fc5798d75ae275637b78cf9;hb=f8181f64e2ba4fca4e85036c48cf90a2151794fc;hpb=0045ad87dfb32f35fc17b5b8942049cfe84d623c diff --git a/event.c b/event.c index a9d2fbb..a809511 100644 --- a/event.c +++ b/event.c @@ -235,7 +235,6 @@ enternotify(XEvent *e) { else if(ev->window == root) { issel = True; XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); - drawall(); } } @@ -272,10 +271,8 @@ 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; - drawall(); - } } static void @@ -329,7 +326,8 @@ propertynotify(XEvent *e) { } if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { updatetitle(c); - drawclient(c); + if(c == sel) + drawstatus(); } } }