From 6e42b65bda1706887f3b2a7f9d79ba20f7611a06 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 16 May 2003 15:16:33 +0000 Subject: add anotehr stacking_add function. make stacking_add take care of raising also. make new windows that dont get focus also not raise above the focused window. --- openbox/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbox/menu.c') diff --git a/openbox/menu.c b/openbox/menu.c index 425a7537..17f96b47 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -200,7 +200,7 @@ Menu *menu_new_full(char *label, char *name, Menu *parent, g_hash_table_insert(menu_map, &self->items, self); g_hash_table_insert(menu_hash, g_strdup(name), self); - stacking_add(self); + stacking_add(MENU_AS_WINDOW(self)); stacking_raise(MENU_AS_WINDOW(self)); return self; -- cgit v1.2.3