JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
before leaning things up
[dwm.git] / event.c
diff --git a/event.c b/event.c
index 93007df..6656d01 100644 (file)
--- a/event.c
+++ b/event.c
@@ -126,7 +126,7 @@ enternotify(XEvent *e)
        if((c = getclient(ev->window)))
                focus(c);
        else if(ev->window == root)
-               sel_screen = True;
+               issel = True;
 }
 
 static void
@@ -135,7 +135,7 @@ leavenotify(XEvent *e)
        XCrossingEvent *ev = &e->xcrossing;
 
        if((ev->window == root) && !ev->same_screen)
-               sel_screen = True;
+               issel = True;
 }
 
 static void
@@ -186,11 +186,11 @@ propertynotify(XEvent *e)
        if(ev->state == PropertyDelete)
                return; /* ignore */
 
-       if(ev->atom == wm_atom[WMProtocols]) {
-               c->proto = win_proto(c->win);
-               return;
-       }
        if((c = getclient(ev->window))) {
+               if(ev->atom == wm_atom[WMProtocols]) {
+                       c->proto = win_proto(c->win);
+                       return;
+               }
                switch (ev->atom) {
                        default: break;
                        case XA_WM_TRANSIENT_FOR: