diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2014-10-06 20:15:08 +0200 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2014-10-06 22:05:26 +0200 |
| commit | d3359676e49b558cb7c6e24ea889c037d044b79f (patch) | |
| tree | 6b6ce9dd03e50ca5c584631999e977ec9a7b0cbf /openbox/actions | |
| parent | 1b3afcff1fea0d1334b50dff378a6667e264b557 (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/actions')
| -rw-r--r-- | openbox/actions/showmenu.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |
