summaryrefslogtreecommitdiff
path: root/openbox/menu.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2014-10-06 20:15:08 +0200
committerMikael Magnusson <mikachu@gmail.com>2014-10-06 22:05:26 +0200
commitd3359676e49b558cb7c6e24ea889c037d044b79f (patch)
tree6b6ce9dd03e50ca5c584631999e977ec9a7b0cbf /openbox/menu.c
parent1b3afcff1fea0d1334b50dff378a6667e264b557 (diff)
Let the menu placement code know if the position was user specified
This way, it can avoid running the code that moves it to a good position relative to a mouse that isn't there
Diffstat (limited to 'openbox/menu.c')
-rw-r--r--openbox/menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/menu.c b/openbox/menu.c
index e3fb0033..b917a59d 100644
--- a/openbox/menu.c
+++ b/openbox/menu.c
@@ -458,7 +458,7 @@ static gboolean menu_hide_delay_func(gpointer data)
}
void menu_show(gchar *name, GravityPoint pos, gint monitor,
- gboolean mouse, ObClient *client)
+ gboolean mouse, gboolean user_positioned, ObClient *client)
{
ObMenu *self;
ObMenuFrame *frame;
@@ -480,7 +480,7 @@ void menu_show(gchar *name, GravityPoint pos, gint monitor,
menu_clear_pipe_caches();
frame = menu_frame_new(self, 0, client);
- if (!menu_frame_show_topmenu(frame, pos, monitor, mouse))
+ if (!menu_frame_show_topmenu(frame, pos, monitor, mouse, user_positioned))
menu_frame_free(frame);
else {
if (!mouse) {