summaryrefslogtreecommitdiff
path: root/openbox/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/menu.c')
-rw-r--r--openbox/menu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbox/menu.c b/openbox/menu.c
index 7d63b545..7af380db 100644
--- a/openbox/menu.c
+++ b/openbox/menu.c
@@ -154,6 +154,7 @@ Menu *menu_new_full(char *label, char *name, Menu *parent,
Menu *self;
self = g_new0(Menu, 1);
+ self->obwin.type = Window_Menu;
self->label = g_strdup(label);
self->name = g_strdup(name);
self->parent = parent;
@@ -350,7 +351,9 @@ void menu_control_show(Menu *self, int x, int y, Client *client) {
MIN(y, screen_physical_size.height - self->size.height));
if (!self->shown) {
- stacking_raise_internal(self->frame);
+ /* XXX gotta add to the stacking list first!
+ stacking_raise(MENU_AS_WINDOW(self));
+ */
XMapWindow(ob_display, self->frame);
self->shown = TRUE;
} else if (self->shown && self->open_submenu) {