]> Dogcows Code - chaz/openbox/blobdiff - openbox/menu.c
Clients Menus and Slits are all 'ObWindow's now.
[chaz/openbox] / openbox / menu.c
index 7d63b5454619d282516280eb7ef6dbc847d6d29c..7af380db0a85b3f5993c9b3d6d54b9697e74e5b8 100644 (file)
@@ -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) {
This page took 0.022212 seconds and 4 git commands to generate.