]> Dogcows Code - chaz/openbox/commitdiff
better placement for top level menus under the mouse cursor. middle placement is...
authorDana Jansens <danakj@orodu.net>
Sun, 25 Mar 2007 17:19:41 +0000 (17:19 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 25 Mar 2007 17:19:41 +0000 (17:19 +0000)
openbox/menuframe.c

index 289c5e30e2d1f8cbef2994bbf81cbc4aa255d407..7b86f4d7cf7ce370958cd0ce1f62fc517f7251ec 100644 (file)
@@ -193,13 +193,8 @@ void menu_frame_place_topmenu(ObMenuFrame *self, gint x, gint y)
         x = self->client->frame->area.x + self->client->frame->size.left;
         y = self->client->frame->area.y + self->client->frame->size.top;
     } else {
-        if (config_menu_middle) {
-            x -= self->area.width / 2;
-            y -= self->title_h*3/4;
-        } else {
-            x -= ob_rr_theme->mbwidth;
-            y -= ob_rr_theme->mbwidth;
-        }
+        x -= ob_rr_theme->mbwidth;
+        y -= ob_rr_theme->mbwidth + self->title_h;
     }
     menu_frame_move(self, x, y);
 }
This page took 0.024823 seconds and 4 git commands to generate.