From: Dana Jansens Date: Sat, 24 May 2003 15:15:41 +0000 (+0000) Subject: let the client menu open below the top of the window, just limit it at the titlebar X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=f7df74b9cc9369fe401d5622c097e258a124f742;p=chaz%2Fopenbox let the client menu open below the top of the window, just limit it at the titlebar --- diff --git a/plugins/menu/client_menu.c b/plugins/menu/client_menu.c index b092e6a6..9905291e 100644 --- a/plugins/menu/client_menu.c +++ b/plugins/menu/client_menu.c @@ -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 -