]> Dogcows Code - chaz/openbox/blobdiff - openbox/mouse.c
make interactive actions a type and not special cases.
[chaz/openbox] / openbox / mouse.c
index 2e8507c347784011916350573a336a0f5cd9ec3f..15d77ae68f3e9ce062592b2df792eaec86b6f60f 100644 (file)
@@ -115,21 +115,9 @@ static gboolean fire_button(ObMouseAction a, ObFrameContext context,
                 act->data.showmenu.y = y;
             }
 
-            if (act->func == action_desktop_dir)
-            {
-                act->data.desktopdir.final = FALSE;
-                act->data.desktopdir.cancel = FALSE;
-            }
-            if (act->func == action_send_to_desktop_dir)
-            {
-                act->data.sendtodir.final = FALSE;
-                act->data.sendtodir.cancel = FALSE;
-            }
-
-            if (config_desktop_popup &&
-                (act->func == action_desktop_dir ||
-                 act->func == action_send_to_desktop_dir))
-            {
+            if (act->data.any.interactive) {
+                act->data.inter.cancel = FALSE;
+                act->data.inter.final = FALSE;
                 keyboard_interactive_grab(state, c, context, act);
             }
 
This page took 0.024689 seconds and 4 git commands to generate.