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/actions/showmenu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openbox/actions') diff --git a/openbox/actions/showmenu.c b/openbox/actions/showmenu.c index 08e625ee..13afe225 100644 --- a/openbox/actions/showmenu.c +++ b/openbox/actions/showmenu.c @@ -115,7 +115,8 @@ static gboolean run_func(ObActionsData *data, gpointer options) /* you cannot call ShowMenu from inside a menu */ if (data->uact != OB_USER_ACTION_MENU_SELECTION && o->name) - menu_show(o->name, position, monitor, data->button != 0, data->client); + menu_show(o->name, position, monitor, + data->button != 0, o->use_position, data->client); return FALSE; } -- cgit v1.2.3