]> Dogcows Code - chaz/openbox/blobdiff - openbox/menuframe.h
improve submenu hide delay
[chaz/openbox] / openbox / menuframe.h
index 624c3f49185f8493d1aa861fe92ffeb63ba1be17..62df87ca3263b5a8a9f8200db96e569e7cc2a5b2 100644 (file)
@@ -53,9 +53,6 @@ struct _ObMenuFrame
 
     GList *entries;
     ObMenuEntryFrame *selected;
-    /* if a submenu was selected, then this holds the entry for that submenu
-       until it is closed */
-    ObMenuEntryFrame *open_submenu;
 
     /* show entries from the menu starting at this index */
     guint show_from;
@@ -83,6 +80,9 @@ struct _ObMenuFrame
                            menu until it has seen a KeyPress.  this is to
                            avoid having the keybinding used to show the menu
                            end up running something inside the menu */
+    ObMenuEntryFrame * submenu_to_hide;  /* if exist (single!) submenu hide request
+               then this variable hold a copy of 'selected' field of the parent menu,
+               otherwice NULL */
 };
 
 struct _ObMenuEntryFrame
This page took 0.022109 seconds and 4 git commands to generate.