JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
moved BORDERPX to config.*.h
[dwm.git] / event.c
diff --git a/event.c b/event.c
index a9d2fbb..75c3fa0 100644 (file)
--- a/event.c
+++ b/event.c
@@ -235,13 +235,11 @@ enternotify(XEvent *e) {
        else if(ev->window == root) {
                issel = True;
                XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
-               drawall();
        }
 }
 
 static void
 expose(XEvent *e) {
-       Client *c;
        XExposeEvent *ev = &e->xexpose;
 
        if(ev->count == 0) {
@@ -272,10 +270,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 +325,8 @@ propertynotify(XEvent *e) {
                }
                if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
                        updatetitle(c);
-                       drawclient(c);
+                       if(c == sel)
+                               drawstatus();
                }
        }
 }