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:
75e691a
)
let the client menu open below the top of the window, just limit it at the titlebar
author
Dana Jansens
<danakj@orodu.net>
Sat, 24 May 2003 15:15:41 +0000
(15:15 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sat, 24 May 2003 15:15:41 +0000
(15:15 +0000)
plugins/menu/client_menu.c
patch
|
blob
|
history
diff --git
a/plugins/menu/client_menu.c
b/plugins/menu/client_menu.c
index b092e6a607fba659947214f34c7187e09a96371e..9905291edf245066902cec4c1e2c507cc707a5ce 100644
(file)
--- a/
plugins/menu/client_menu.c
+++ b/
plugins/menu/client_menu.c
@@
-47,8
+47,9
@@
void client_menu_show(Menu *self, int x, int y, Client *client)
g_assert(!self->invalid);
g_assert(client);
- newy = client->frame->area.y + client->frame->a_focused_title->area.height
- + theme_bwidth;
+ newy = MAX(client->frame->area.y +
+ client->frame->a_focused_title->area.height + theme_bwidth,
+ y - theme_bwidth);
POINT_SET(self->location,
MIN(x, screen_physical_size.width - self->size.width -