X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=plugins%2Fmenu%2Fclient_menu.c;h=aa09495ba5bd7fed3f5e5f8c8176914a7d04d249;hb=34e819738b344a992a1dbfd6cdd165e0c8ddb3a9;hp=9905291edf245066902cec4c1e2c507cc707a5ce;hpb=f7df74b9cc9369fe401d5622c097e258a124f742;p=chaz%2Fopenbox diff --git a/plugins/menu/client_menu.c b/plugins/menu/client_menu.c index 9905291e..aa09495b 100644 --- a/plugins/menu/client_menu.c +++ b/plugins/menu/client_menu.c @@ -47,15 +47,16 @@ void client_menu_show(Menu *self, int x, int y, Client *client) g_assert(!self->invalid); g_assert(client); - newy = MAX(client->frame->area.y + - client->frame->a_focused_title->area.height + theme_bwidth, - y - theme_bwidth); + newy = MAX(client->frame->area.y + client->frame->size.top, y); + newy -= ob_rr_theme->bwidth; + /* XXX do xinerama shit like in menu.c! im not coding it now because + this function isnt even being used right now... */ 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) { @@ -78,7 +79,7 @@ void plugin_destroy (Menu *m) void *plugin_create() /* TODO: need config */ { Menu *m = menu_new_full(NULL, "client-menu", NULL, - client_menu_show, NULL); + /*client_menu_show*/NULL, NULL); menu_add_entry(m, menu_entry_new_submenu("Send To Workspace", send_to_menu)); send_to_menu->parent = m;