From 7886b797a36f5a035a75a19424e0b3cf7825baf8 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 17 Apr 2003 05:28:35 +0000 Subject: move the move/resize functionality into moveresize.c, for use with the netwm atoms. use it from teh plugins. combine the two actions. --- openbox/event.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'openbox/event.c') 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 || -- cgit v1.2.3