let the client menu open below the top of the window, just limit it at the titlebar
This commit is contained in:
parent
75e691a2a5
commit
f7df74b9cc
1 changed files with 3 additions and 2 deletions
|
@ -47,8 +47,9 @@ void client_menu_show(Menu *self, int x, int y, Client *client)
|
|||
g_assert(!self->invalid);
|
||||
g_assert(client);
|
||||
|
||||
newy = client->frame->area.y + client->frame->a_focused_title->area.height
|
||||
+ theme_bwidth;
|
||||
newy = MAX(client->frame->area.y +
|
||||
client->frame->a_focused_title->area.height + theme_bwidth,
|
||||
y - theme_bwidth);
|
||||
|
||||
POINT_SET(self->location,
|
||||
MIN(x, screen_physical_size.width - self->size.width -
|
||||
|
|
Loading…
Reference in a new issue