From 6f5292c87ece138a2b80d102ba0919b105b1839a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 1 Oct 2003 17:28:12 +0000 Subject: define DEBUG, NDEBUG, and G_DISABLE_ASSERTS --- openbox/menu.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'openbox/menu.c') diff --git a/openbox/menu.c b/openbox/menu.c index 5efacc2a..1585a56d 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -290,7 +290,13 @@ void menu_show(gchar *name, gint x, gint y, ObClient *client) menu_frame_hide_all(); frame = menu_frame_new(self, client); - menu_frame_move(frame, x - ob_rr_theme->bwidth, y - ob_rr_theme->bwidth); + if (client && x < 0 && y < 0) + menu_frame_move(frame, + client->frame->area.x + client->frame->size.left, + client->frame->area.y + client->frame->size.top); + else + menu_frame_move(frame, + x - ob_rr_theme->bwidth, y - ob_rr_theme->bwidth); menu_frame_show(frame, NULL); if (frame->entries) menu_frame_select_next(frame); -- cgit v1.2.3