diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-05-11 19:44:33 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-05-11 19:44:33 +0000 |
| commit | 58cfbb7f8419e084af6b6b8b00c88ed270c29e88 (patch) | |
| tree | 6d786e87e1fb369d94522a69d0b3f2c694a8ed4e /openbox/menu.c | |
| parent | 506122a110035f810c7d25225661973845a59c62 (diff) | |
Clients Menus and Slits are all 'ObWindow's now.
Stacking is done with ObWindows.
Slits add themselves to the stacking order, as do clients of course.
Added some macros for adding/removing to the stacking order.
Diffstat (limited to 'openbox/menu.c')
| -rw-r--r-- | openbox/menu.c | 5 |
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) { |
