X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=plugins%2Fmenu%2Fclient_menu.c;h=7e15f3f9c5db0978995a009675abdfad91bab5ca;hb=b1f5555218ecaa3827450125dc47b4bf0d404ee4;hp=230012d79a91ff7dcaffbb70f5eceda571b339df;hpb=f249e01616f6b18dc56a4367ecdf22698476bfbf;p=chaz%2Fopenbox diff --git a/plugins/menu/client_menu.c b/plugins/menu/client_menu.c index 230012d7..7e15f3f9 100644 --- a/plugins/menu/client_menu.c +++ b/plugins/menu/client_menu.c @@ -47,14 +47,14 @@ 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->size.top, y); + newy -= ob_rr_theme->bwidth; POINT_SET(self->location, MIN(x, screen_physical_size.width - self->size.width - - theme_bwidth * 2), + ob_rr_theme->bwidth * 2), MIN(newy, screen_physical_size.height - self->size.height - - theme_bwidth * 2)); + ob_rr_theme->bwidth * 2)); XMoveWindow(ob_display, self->frame, self->location.x, self->location.y); if (!self->shown) { @@ -94,6 +94,8 @@ void *plugin_create() /* TODO: need config */ action_from_string("toggleshade"))); menu_add_entry(m, menu_entry_new("Omnipresent", action_from_string("toggleomnipresent"))); + menu_add_entry(m, menu_entry_new("Decorations", + action_from_string("toggledecorations"))); menu_add_entry(m, menu_entry_new_submenu("Layers", layer_menu)); layer_menu->parent = m;