]> Dogcows Code - chaz/openbox/blobdiff - openbox/event.c
move the move/resize functionality into moveresize.c, for use with the netwm atoms...
[chaz/openbox] / openbox / event.c
index 042a76dc93d04037286b84bf9ce4941f35e63ca5..f919125532512afe5380b7c7ff71f4b50d2b77ea 100644 (file)
@@ -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 ||
This page took 0.022522 seconds and 4 git commands to generate.