summaryrefslogtreecommitdiff
path: root/openbox/menu.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2014-11-05 09:58:57 +0100
committerMikael Magnusson <mikachu@gmail.com>2014-11-05 09:59:09 +0100
commit8944094f7164e2649a235fc699cc03b99355a0c8 (patch)
tree262bd27ed699c6ae41d0d6d99d4a2e7ea5e1e33b /openbox/menu.c
parent28e85ea2b27100de4d737347b3460324d7e971e2 (diff)
Allow selecting menu entries during menuHideDelay if you click again, bug 5501
Diffstat (limited to 'openbox/menu.c')
-rw-r--r--openbox/menu.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/openbox/menu.c b/openbox/menu.c
index ae69acbb..8804e128 100644
--- a/openbox/menu.c
+++ b/openbox/menu.c
@@ -454,6 +454,7 @@ static gboolean menu_hide_delay_func(gpointer data)
{
menu_can_hide = TRUE;
menu_timeout_id = 0;
+
return FALSE; /* no repeat */
}
@@ -518,6 +519,12 @@ gboolean menu_hide_delay_reached(void)
return menu_can_hide;
}
+void menu_hide_delay_reset(void)
+{
+ if (menu_timeout_id) g_source_remove(menu_timeout_id);
+ menu_hide_delay_func(NULL);
+}
+
static ObMenuEntry* menu_entry_new(ObMenu *menu, ObMenuEntryType type, gint id)
{
ObMenuEntry *self;