all repos — openbox @ 59c5d1cc4e9d149510c62af16354ebd172452f48

openbox fork - make it a bit more like ryudo

set up the menu's parent and children stuff before rendering it
Dana Jansens danakj@orodu.net
commit

59c5d1cc4e9d149510c62af16354ebd172452f48

parent

e6c82786ff65e7681c980c8adebe082656c16438

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M openbox/menuframe.copenbox/menuframe.c

@@ -689,8 +689,6 @@ gint dx, dy;

if (menu_frame_is_visible(self)) return TRUE; - if (!menu_frame_show(self)) - return FALSE; self->monitor = parent->monitor; self->parent = parent;

@@ -700,6 +698,9 @@ /* set up parent's child to be us */

if (parent->child) menu_frame_hide(parent->child); parent->child = self; + + if (!menu_frame_show(self)) + return FALSE; menu_frame_place_submenu(self); menu_frame_move_on_screen(self, &dx, &dy);