JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added zoom on Mod1-Button1 on managed clients only (there is no moving possible)
[dwm.git] / event.c
diff --git a/event.c b/event.c
index c3169aa..b6beed5 100644 (file)
--- a/event.c
+++ b/event.c
@@ -131,6 +131,8 @@ buttonpress(XEvent *e)
                                higher(c);
                                movemouse(c);
                        }
+                       else
+                               zoom(NULL);
                        break;
                case Button2:
                        lower(c);
@@ -146,18 +148,6 @@ buttonpress(XEvent *e)
 }
 
 static void
-clientmessage(XEvent *e)
-{
-       Client *c;
-       XClientMessageEvent *ev = &e->xclient;
-
-       if(ev->message_type == netatom[NetActiveWindow]) {
-               if((c = getclient(ev->window)) && c->tags[tsel])
-                       focus(c);
-       }
-}
-
-static void
 configurerequest(XEvent *e)
 {
        Client *c;
@@ -351,7 +341,6 @@ unmapnotify(XEvent *e)
 
 void (*handler[LASTEvent]) (XEvent *) = {
        [ButtonPress] = buttonpress,
-       [ClientMessage] = clientmessage,
        [ConfigureRequest] = configurerequest,
        [DestroyNotify] = destroynotify,
        [EnterNotify] = enternotify,