all repos — openbox @ f7df74b9cc9369fe401d5622c097e258a124f742

openbox fork - make it a bit more like ryudo

let the client menu open below the top of the window, just limit it at the titlebar
Dana Jansens danakj@orodu.net
commit

f7df74b9cc9369fe401d5622c097e258a124f742

parent

75e691a2a563b488bef8010315fcfb4296b5cccf

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M plugins/menu/client_menu.cplugins/menu/client_menu.c

@@ -47,8 +47,9 @@ int newy;

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 -