]> Dogcows Code - chaz/openbox/commitdiff
confine the mouse to the window for button grabs so that alt-click-drag on a window...
authorDana Jansens <danakj@orodu.net>
Tue, 14 May 2002 23:15:38 +0000 (23:15 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 14 May 2002 23:15:38 +0000 (23:15 +0000)
src/Window.cc

index 70b2ea05eb86f95bba7e272d6fd4c7f1085c481a..80f201ad36a34a059f1685c11448db35bf523fbf 100644 (file)
@@ -261,16 +261,16 @@ OpenboxWindow::OpenboxWindow(Openbox &o, Window w, BScreen *s) : openbox(o) {
 
   if (! screen->sloppyFocus())
     openbox.grabButton(Button1, 0, frame.plate, True, ButtonPressMask,
-        GrabModeSync, GrabModeSync, None, None);
+        GrabModeSync, GrabModeSync, frame.plate, None);
 
   openbox.grabButton(Button1, Mod1Mask, frame.window, True,
       ButtonReleaseMask | ButtonMotionMask, GrabModeAsync,
-      GrabModeAsync, None, openbox.getMoveCursor());
+      GrabModeAsync, frame.window, openbox.getMoveCursor());
   openbox.grabButton(Button2, Mod1Mask, frame.window, True,
-      ButtonReleaseMask, GrabModeAsync, GrabModeAsync, None, None);
+      ButtonReleaseMask, GrabModeAsync, GrabModeAsync, frame.window, None);
   openbox.grabButton(Button3, Mod1Mask, frame.window, True,
       ButtonReleaseMask | ButtonMotionMask, GrabModeAsync,
-      GrabModeAsync, None, None);
+      GrabModeAsync, frame.window, None);
 
   positionWindows();
   XRaiseWindow(display, frame.plate);
This page took 0.024065 seconds and 4 git commands to generate.