]> Dogcows Code - chaz/openbox/blobdiff - plugins/menu/client_menu.c
put the render theme into a struct
[chaz/openbox] / plugins / menu / client_menu.c
index 9905291edf245066902cec4c1e2c507cc707a5ce..7e15f3f9c5db0978995a009675abdfad91bab5ca 100644 (file)
@@ -47,15 +47,14 @@ 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;
     
     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) {
This page took 0.022147 seconds and 4 git commands to generate.