]> Dogcows Code - chaz/openbox/commitdiff
add an option for if the popup is used for desktop cycling. defaults on.
authorDana Jansens <danakj@orodu.net>
Tue, 12 Aug 2003 10:03:13 +0000 (10:03 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 12 Aug 2003 10:03:13 +0000 (10:03 +0000)
openbox/config.c
openbox/config.h
openbox/mouse.c
openbox/screen.c

index 5444e013a500b20b7fb15cdcdf378ec3da0520a1..f051452348ee4531cdb042eceb4f316ca3ba610f 100644 (file)
@@ -9,6 +9,7 @@ gboolean config_focus_follow;
 gboolean config_focus_last;
 gboolean config_focus_last_on_desktop;
 gboolean config_focus_popup;
+gboolean config_desktop_popup;
 
 char *config_theme;
 
@@ -231,6 +232,8 @@ static void parse_desktops(xmlDocPtr doc, xmlNodePtr node, void *d)
             nname = parse_find_node("name", nname->next);
         }
     }
+    if ((n = parse_find_node("cyclingDialog", node)))
+        config_desktop_popup = parse_bool(doc, n);
 }
 
 static void parse_resize(xmlDocPtr doc, xmlNodePtr node, void *d)
@@ -321,6 +324,7 @@ void config_startup()
 
     config_desktops_num = 4;
     config_desktops_names = NULL;
+    config_desktop_popup = TRUE;
 
     parse_register("desktops", parse_desktops, NULL);
 
index 413ff184408c0e081912e902c906311482a670dc..b025413557a76b616d6425b1de03f50f0ce0db02 100644 (file)
@@ -16,6 +16,8 @@ extern gboolean config_focus_last;
 extern gboolean config_focus_last_on_desktop;
 /*! Show a popup dialog while cycling focus */
 extern gboolean config_focus_popup;
+/*! Show a popup dialog while cycling desktops */
+extern gboolean config_desktop_popup;
 /*! The number of slits to create 
   extern int config_slit_number;*/
 /*! When true windows' contents are refreshed while they are resized; otherwise
index 6651a1f2c1c39d73e34da2140c78e7cc69d86d5a..2624ecb930ab7b5458bcb9c9721d93e44a063b36 100644 (file)
@@ -121,8 +121,10 @@ static void fire_button(ObMouseAction a, ObFrameContext context,
                 act->data.sendtodir.cancel = FALSE;
             }
 
-            if ((act->func == action_desktop_dir ||
-                 act->func == action_send_to_desktop_dir)) {
+            if (config_desktop_popup &&
+                (act->func == action_desktop_dir ||
+                 act->func == action_send_to_desktop_dir))
+            {
                 keyboard_interactive_grab(state, c, context, act);
             }
 
index 8e5daec745979eb358ae7370232d986c046806ee..8835c1b212b9ee83ad194b339c03a39987cbc17e 100644 (file)
@@ -700,7 +700,8 @@ guint screen_cycle_desktop(ObDirection dir, gboolean wrap, gboolean linear,
         d = translate_row_col(r, c);
     }
 
-    popup_cycle(d, TRUE);
+    if (config_desktop_popup)
+        popup_cycle(d, TRUE);
     return d;
 
 done_cycle:
This page took 0.028368 seconds and 4 git commands to generate.