summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-17 05:28:35 +0000
committerDana Jansens <danakj@orodu.net>2003-04-17 05:28:35 +0000
commit7886b797a36f5a035a75a19424e0b3cf7825baf8 (patch)
treed7279da4dbeda975909f71af3193a39ce7e69901 /openbox/event.c
parent55c424d38bb119bd04199ed5e73b035b00474dd9 (diff)
move the move/resize functionality into moveresize.c, for use with the netwm atoms. use it from teh plugins. combine the two actions.
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 042a76dc..f9191255 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -8,6 +8,7 @@
#include "menu.h"
#include "framerender.h"
#include "focus.h"
+#include "moveresize.h"
#include "stacking.h"
#include "extensions.h"
#include "timer.h"
@@ -359,6 +360,14 @@ static void event_process(XEvent *e)
xerror_set_ignore(FALSE);
}
+ if (moveresize_in_progress)
+ if (e->type == MotionNotify || e->type == ButtonRelease ||
+ e->type == ButtonPress ||
+ e->type == KeyPress || e->type == KeyRelease) {
+ moveresize_event(e);
+ return; /* no dispatch! */
+ }
+
/* user input (action-bound) events */
/*
if (e->type == ButtonPress || e->type == ButtonRelease ||