From 8fe0cb8989c1fe12b30b9030b446345f25340d35 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 9 Sep 2003 07:16:38 +0000 Subject: no more interactive mouse actions, they are evil etc. actions now "feel" much more solid. if move/resizing a window while changing workspaces, it will follow. --- openbox/event.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'openbox/event.c') diff --git a/openbox/event.c b/openbox/event.c index c744e3ab..79d35077 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -487,17 +487,14 @@ static void event_process(const XEvent *ec, gpointer data) { if (menu_frame_visible) event_handle_menu(e); - else if (moveresize_in_progress) - moveresize_event(e); else { - ObFrameContext context; + if (!keyboard_process_interactive_grab(e)) { + if (moveresize_in_progress) + moveresize_event(e); - context = frame_context(client, e->xany.window); - - if (!keyboard_process_interactive_grab(e, &client, &context)) { if (e->type == ButtonPress || e->type == ButtonRelease || e->type == MotionNotify) - mouse_event(client, context, e); + mouse_event(client, e); else if (e->type == KeyPress) /* when in the middle of a focus cycling action, this causes the window which appears to be focused to be -- cgit v1.2.3