summaryrefslogtreecommitdiff
path: root/src/applet-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/applet-main.c')
-rw-r--r--src/applet-main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/applet-main.c b/src/applet-main.c
index 4126607..995552c 100644
--- a/src/applet-main.c
+++ b/src/applet-main.c
@@ -554,6 +554,14 @@ hotkey_filter (char * keystring G_GNUC_UNUSED, gpointer data)
return;
}
+#if !GTK_CHECK_VERSION(3,0,0)
+ if (!GTK_MENU_SHELL(data)->active) {
+ gtk_grab_add (GTK_WIDGET(data));
+ GTK_MENU_SHELL(data)->have_grab = TRUE;
+ GTK_MENU_SHELL(data)->active = TRUE;
+ }
+#endif
+
gtk_menu_shell_select_item(GTK_MENU_SHELL(data), GTK_WIDGET(g_list_last(children)->data));
g_list_free(children);
return;