summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
Diffstat (limited to 'openbox')
-rw-r--r--openbox/menuframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/menuframe.c b/openbox/menuframe.c
index 30c332ce..289c5e30 100644
--- a/openbox/menuframe.c
+++ b/openbox/menuframe.c
@@ -222,7 +222,7 @@ void menu_frame_place_submenu(ObMenuFrame *self)
y = self->parent->area.y + self->parent->title_h +
self->parent_entry->area.y + overlap;
if (config_menu_middle)
- y = y - self->area.height/2 + self->item_h/2;
+ y = y - (self->area.height - (bwidth * 2) - self->item_h) / 2;
menu_frame_move(self, x, y);
}