X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fevent.c;h=79d350775ed43be0fc2364f37b581928f25af560;hb=8fe0cb8989c1fe12b30b9030b446345f25340d35;hp=c744e3ab9828931e3f55034fdc217e3f27f9e362;hpb=0f544808b8372a6c8a2cbfae214f2803dd3c6170;p=chaz%2Fopenbox 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