I can drag on buttons.
authorMikael Magnusson <mikachu@comhem.se>
Sat, 8 Mar 2008 16:19:38 +0000 (17:19 +0100)
committerMikael Magnusson <mikachu@gmail.com>
Sun, 19 Sep 2010 15:55:23 +0000 (17:55 +0200)
openbox/mouse.c

index ddf6851d2424d57bc0a40ee166a4b4b4d3555af2..7c4957102b5c7a30a2d99cd613acaf4fd1025e3e 100644 (file)
@@ -340,15 +340,6 @@ gboolean mouse_event(ObClient *client, XEvent *e)
             if (ABS(e->xmotion.x_root - px) >= config_mouse_threshold ||
                 ABS(e->xmotion.y_root - py) >= config_mouse_threshold) {
 
-                /* You can't drag on buttons */
-                if (context == OB_FRAME_CONTEXT_MAXIMIZE ||
-                    context == OB_FRAME_CONTEXT_ALLDESKTOPS ||
-                    context == OB_FRAME_CONTEXT_SHADE ||
-                    context == OB_FRAME_CONTEXT_ICONIFY ||
-                    context == OB_FRAME_CONTEXT_ICON ||
-                    context == OB_FRAME_CONTEXT_CLOSE)
-                    break;
-
                 used = fire_binding(OB_MOUSE_ACTION_MOTION, context,
                                     client, state, button, px, py);
                 button = 0;