all repos — openbox @ 3ff8eb037e9a0ea5d4c8ffd65831eb01a00f1de7

openbox fork - make it a bit more like ryudo

fix grabbing and not releasing with menus
Dana Jansens danakj@orodu.net
commit

3ff8eb037e9a0ea5d4c8ffd65831eb01a00f1de7

parent

8a1e9c64d86b0a21db9edfe6b6a7221f07c1e5f5

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

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

@@ -488,13 +488,13 @@ if (self->parent)

self->parent->child = NULL; self->parent = NULL; + menu_frame_visible = g_list_delete_link(menu_frame_visible, it); + if (menu_frame_visible == NULL) { /* last menu shown */ grab_pointer(FALSE, None); grab_keyboard(FALSE); } - - menu_frame_visible = g_list_delete_link(menu_frame_visible, it); XUnmapWindow(ob_display, self->window);

@@ -623,7 +623,18 @@ for (it = acts; it; it = g_slist_next(it))

{ ObAction *act = it->data; act->data.any.c = client; - act->func(&act->data); + + if (act->func == action_moveresize) + screen_pointer_pos(&act->data.moveresize.x, + &act->data.moveresize.y); + + if (!(act->func == action_cycle_windows || + act->func == action_desktop_dir || + act->func == action_send_to_desktop_dir || + act->func == action_showmenu)) + { + act->func(&act->data); + } } } }