JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
implemented focus on enterwindow on titlebars
[dwm.git] / event.c
diff --git a/event.c b/event.c
index 0359971..a961e5c 100644 (file)
--- a/event.c
+++ b/event.c
@@ -202,7 +202,7 @@ enternotify(XEvent *e)
        if(ev->detail == NotifyInferior)
                return;
 
-       if((c = getclient(ev->window)))
+       if((c = getclient(ev->window)) || (c = getctitle(ev->window)))
                focus(c);
        else if(ev->window == root)
                issel = True;