From d3359676e49b558cb7c6e24ea889c037d044b79f Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Mon, 6 Oct 2014 20:15:08 +0200 Subject: 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 --- openbox/menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/menu.c') 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) { -- cgit v1.2.3