let the client menu open below the top of the window, just limit it at the titlebar

This commit is contained in:
Dana Jansens 2003-05-24 15:15:41 +00:00
parent 75e691a2a5
commit f7df74b9cc

View file

@ -47,8 +47,9 @@ void client_menu_show(Menu *self, int x, int y, Client *client)
g_assert(!self->invalid); g_assert(!self->invalid);
g_assert(client); g_assert(client);
newy = client->frame->area.y + client->frame->a_focused_title->area.height newy = MAX(client->frame->area.y +
+ theme_bwidth; client->frame->a_focused_title->area.height + theme_bwidth,
y - theme_bwidth);
POINT_SET(self->location, POINT_SET(self->location,
MIN(x, screen_physical_size.width - self->size.width - MIN(x, screen_physical_size.width - self->size.width -