summaryrefslogtreecommitdiff
path: root/src/actions.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-10 06:50:19 +0000
committerDana Jansens <danakj@orodu.net>2003-02-10 06:50:19 +0000
commit12108e16e166034cd1840627502280d9a1ab0b9e (patch)
tree54abc88e46822812c4eff78ac007ef7a5d7ddbd2 /src/actions.cc
parenta5ea4b0480c9daeb860bf3adbfc755c84d2e082d (diff)
keep track of struts for each desktop
Diffstat (limited to 'src/actions.cc')
-rw-r--r--src/actions.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/actions.cc b/src/actions.cc
index 3eb29215..3a7ff369 100644
--- a/src/actions.cc
+++ b/src/actions.cc
@@ -42,6 +42,7 @@ void Actions::insertPress(const XButtonEvent &e)
_posqueue[i] = _posqueue[i-1];
}
_posqueue[0] = a;
+ a->win = e.window;
a->button = e.button;
a->pos = otk::Point(e.x_root, e.y_root);
@@ -274,6 +275,8 @@ void Actions::motionHandler(const XMotionEvent &e)
if (!e.same_screen) return; // this just gets stupid
+ if (e.window != _posqueue[0]->win) return;
+
MouseContext::MC context;
EventHandler *h = openbox->findHandler(e.window);
Frame *f = dynamic_cast<Frame*>(h);
@@ -287,7 +290,7 @@ void Actions::motionHandler(const XMotionEvent &e)
return; // not a valid mouse context
int x_root = e.x_root, y_root = e.y_root;
-
+
// compress changes to a window into a single change
XEvent ce;
while (XCheckTypedWindowEvent(**otk::display, e.window, e.type, &ce)) {