]> Dogcows Code - chaz/openbox/blobdiff - openbox/actions.c
well.. it compiles..
[chaz/openbox] / openbox / actions.c
index 7087f37d71557e196608308be4a2454ded875cd8..00563a700055aa7b2ebeb7064da415895dc4a30f 100644 (file)
@@ -19,6 +19,7 @@
 #include "actions.h"
 #include "gettext.h"
 #include "grab.h"
+#include "screen.h"
 
 static void     actions_definition_ref(ObActionsDefinition *def);
 static void     actions_definition_unref(ObActionsDefinition *def);
@@ -54,12 +55,12 @@ static GSList *registered = NULL;
 void actions_startup(gboolean reconfig)
 {
     if (reconfig) return;
-
-    
 }
 
 void actions_shutdown(gboolean reconfig)
 {
+    actions_interactive_cancel_act();
+
     if (reconfig) return;
 
     /* free all the registered actions */
@@ -205,6 +206,14 @@ void actions_run_acts(GSList *acts,
 {
     GSList *it;
 
+    /* Don't allow saving the initial state when running things from the
+       menu */
+    if (uact == OB_USER_ACTION_MENU_SELECTION)
+        state = 0;
+    /* If x and y are < 0 then use the current pointer position */
+    if (x < 0 && y < 0)
+        screen_pointer_pos(&x, &y);
+
     for (it = acts; it; it = g_slist_next(it)) {
         ObActionsData data;
         ObActionsAct *act = it->data;
This page took 0.025232 seconds and 4 git commands to generate.