]> Dogcows Code - chaz/openbox/blobdiff - plugins/menu/client_menu.c
simply the render interface by not requiring the setting of all the areas. only take...
[chaz/openbox] / plugins / menu / client_menu.c
index 230012d79a91ff7dcaffbb70f5eceda571b339df..142c665427b4401c4a96942c58c8e1d0c633c3d3 100644 (file)
@@ -47,8 +47,8 @@ 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 - theme_bwidth);
     
     POINT_SET(self->location, 
              MIN(x, screen_physical_size.width - self->size.width -
@@ -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;
This page took 0.02488 seconds and 4 git commands to generate.