summaryrefslogtreecommitdiff
path: root/openbox/menu.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-22 03:53:22 +0000
committerDana Jansens <danakj@orodu.net>2007-06-22 03:53:22 +0000
commit38268dc917ac9e59d9e8ef87825c9489ced77e95 (patch)
treea66a1deb0f3a9f97e1ffce690b0a7c8e6f579455 /openbox/menu.c
parent9dacac5e5e6b9ed86e76680b048bc227d8866ac6 (diff)
add the showmenu action
Diffstat (limited to 'openbox/menu.c')
-rw-r--r--openbox/menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbox/menu.c b/openbox/menu.c
index c4111018..855828c6 100644
--- a/openbox/menu.c
+++ b/openbox/menu.c
@@ -407,7 +407,7 @@ static gboolean menu_hide_delay_func(gpointer data)
return FALSE; /* no repeat */
}
-void menu_show(gchar *name, gint x, gint y, gint button, ObClient *client)
+void menu_show(gchar *name, gint x, gint y, gboolean mouse, ObClient *client)
{
ObMenu *self;
ObMenuFrame *frame;
@@ -429,10 +429,10 @@ void menu_show(gchar *name, gint x, gint y, gint button, ObClient *client)
menu_clear_pipe_caches();
frame = menu_frame_new(self, 0, client);
- if (!menu_frame_show_topmenu(frame, x, y, button))
+ if (!menu_frame_show_topmenu(frame, x, y, mouse))
menu_frame_free(frame);
else {
- if (!button) {
+ if (!mouse) {
/* select the first entry if it's not a submenu and we opened
* the menu with the keyboard, and skip all headers */
GList *it = frame->entries;
@@ -449,7 +449,7 @@ void menu_show(gchar *name, gint x, gint y, gint button, ObClient *client)
}
/* reset the hide timer */
- if (!button)
+ if (!mouse)
menu_can_hide = TRUE;
else {
menu_can_hide = FALSE;