position the client menu right

This commit is contained in:
Dana Jansens 2003-06-20 02:19:53 +00:00
parent cd12a2eae5
commit f90ee94d6b

View file

@ -47,8 +47,8 @@ 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 = MAX(client->frame->area.y + client->frame->size.top, newy = MAX(client->frame->area.y + client->frame->size.top, y);
y - theme_bwidth); newy -= 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 -