all repos — openbox @ e7978c7d24723f46615f8a2f209d1035bdee7bc4

openbox fork - make it a bit more like ryudo

confine the mouse to the window for button grabs so that alt-click-drag on a window that wont move doesnt let the mouse leave the window and cause havoc
Dana Jansens danakj@orodu.net
commit

e7978c7d24723f46615f8a2f209d1035bdee7bc4

parent

f7ace0fad8ddfc2cfc9e3a127ff00c6338958078

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/Window.ccsrc/Window.cc

@@ -261,16 +261,16 @@ associateClientWindow();

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);