summaryrefslogtreecommitdiff
path: root/openbox/menuframe.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-25 17:19:41 +0000
committerDana Jansens <danakj@orodu.net>2007-03-25 17:19:41 +0000
commitee58f96a8403b8058e3165e32b391cd136a5108f (patch)
treec5c42df063c5715181f41084ec1d6ce1eb1456ab /openbox/menuframe.c
parentafc015158aed10491e58a30d66728dffe36f3ae0 (diff)
better placement for top level menus under the mouse cursor. middle placement is not used for this now. it was behaving differently than submenus so i'd like to have some consistency
Diffstat (limited to 'openbox/menuframe.c')
-rw-r--r--openbox/menuframe.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/openbox/menuframe.c b/openbox/menuframe.c
index 289c5e30..7b86f4d7 100644
--- a/openbox/menuframe.c
+++ b/openbox/menuframe.c
@@ -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);
}