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>
Sat, 11 Oct 2014 00:17:20 +0000 (02:17 +0200)
openbox/mouse.c

index 2f0c8f5..4b92003 100644 (file)
@@ -346,15 +346,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;