summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-30 18:29:28 +0000
committerDana Jansens <danakj@orodu.net>2007-03-30 18:29:28 +0000
commit8d7cc2597e51281e171744a750b6981ce74b7ead (patch)
treeb6082aa8a6e675134fed4d985c96f79565a26d81 /openbox
parente785e18a2c73e75670c2b46f3b0688bb4de18bdc (diff)
the centered menus thing got annoying :|
Diffstat (limited to 'openbox')
-rw-r--r--openbox/menuframe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbox/menuframe.c b/openbox/menuframe.c
index 9455410c..a4cb4647 100644
--- a/openbox/menuframe.c
+++ b/openbox/menuframe.c
@@ -193,7 +193,9 @@ 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 {
- x -= self->area.width / 2;
+ if (config_menu_middle) {
+ x -= self->area.width / 2;
+ }
y -= self->title_h;
}
menu_frame_move(self, x, y);