projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ede50be
)
better vertical centering for when "middle" placement is enabled for menus
author
Dana Jansens
<danakj@orodu.net>
Sun, 25 Mar 2007 17:16:32 +0000
(17:16 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 25 Mar 2007 17:16:32 +0000
(17:16 +0000)
openbox/menuframe.c
patch
|
blob
|
history
diff --git
a/openbox/menuframe.c
b/openbox/menuframe.c
index
30c332c
..
289c5e3
100644
(file)
--- 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);
}