From 9a9e3f6bf6be75094636e37d54fb16e4456b43be Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 5 May 2007 00:50:53 +0000 Subject: woa.. let you do mouse actions while in an interactive keyboard action, and let you do keyboard actions while move/resizing. yay. also you can click in windows at the same time.. --- openbox/event.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'openbox/event.c') diff --git a/openbox/event.c b/openbox/event.c index ff9ea574..efef0faa 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -546,14 +546,16 @@ static void event_process(const XEvent *ec, gpointer data) } if (useevent) { - if (!keyboard_process_interactive_grab(e, &client)) { - if (moveresize_in_progress) { - moveresize_event(e); - + /* if the keyboard interactive action uses the event then dont + use it for bindings. likewise is moveresize uses the event. */ + if (!keyboard_process_interactive_grab(e, &client) && + !(moveresize_in_progress && moveresize_event(e))) + { + if (moveresize_in_progress) /* make further actions work on the client being moved/resized */ client = moveresize_client; - } + menu_can_hide = FALSE; ob_main_loop_timeout_add(ob_main_loop, -- cgit v1.2.3