diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2014-10-06 19:38:51 +0200 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2014-10-06 22:05:26 +0200 |
| commit | c5c5b7b455334ec2987b0f04e18d817f6d3767d0 (patch) | |
| tree | f1344f89cdc7e0ee62df3f2133c9be4aa23e26b3 /openbox/menu.c | |
| parent | 238ab3f742644af7f3b4d2a7a7860fedd290ad29 (diff) | |
Resolve gravity coords in menuframe so it can use the widths
Diffstat (limited to 'openbox/menu.c')
| -rw-r--r-- | openbox/menu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openbox/menu.c b/openbox/menu.c index d1f71a08..e3fb0033 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -457,7 +457,8 @@ static gboolean menu_hide_delay_func(gpointer data) return FALSE; /* no repeat */ } -void menu_show(gchar *name, gint x, gint y, gboolean mouse, ObClient *client) +void menu_show(gchar *name, GravityPoint pos, gint monitor, + gboolean mouse, ObClient *client) { ObMenu *self; ObMenuFrame *frame; @@ -479,7 +480,7 @@ void menu_show(gchar *name, gint x, gint y, gboolean mouse, ObClient *client) menu_clear_pipe_caches(); frame = menu_frame_new(self, 0, client); - if (!menu_frame_show_topmenu(frame, x, y, mouse)) + if (!menu_frame_show_topmenu(frame, pos, monitor, mouse)) menu_frame_free(frame); else { if (!mouse) { |
