summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-09-09 07:16:38 +0000
committerDana Jansens <danakj@orodu.net>2003-09-09 07:16:38 +0000
commit8fe0cb8989c1fe12b30b9030b446345f25340d35 (patch)
treeb6153a2844ff8a1872d53bf0c843f6079db6f8f8 /openbox/event.c
parent0f544808b8372a6c8a2cbfae214f2803dd3c6170 (diff)
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.
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c11
1 files changed, 4 insertions, 7 deletions
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