all repos — openbox @ 1a145bba6121201126ac2ffcbb8b74b7d36c95e7

openbox fork - make it a bit more like ryudo

resize with alt+right click in all the same places that alt+left click moves
Dana Jansens danakj@orodu.net
commit

1a145bba6121201126ac2ffcbb8b74b7d36c95e7

parent

aa2ec5f217d2f390edc32e7bcf211d88f2290f8b

1 files changed, 7 insertions(+), 5 deletions(-)

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

@@ -3611,15 +3611,17 @@ doMove(me->x_root, me->y_root);

} else if (flags.resizing) { doResize(me->x_root, me->y_root); } else { - if (!flags.resizing && me->state & Button1Mask && (functions & Func_Move) && + if ((functions & Func_Move) && + (me->state & Button1Mask) && (frame.title == me->window || frame.label == me->window || frame.handle == me->window || frame.window == me->window)) { beginMove(me->x_root, me->y_root); } else if ((functions & Func_Resize) && - (me->state & Button1Mask && (me->window == frame.right_grip || - me->window == frame.left_grip)) || - (me->state & Button3Mask && me->state & mod_mask && - me->window == frame.window)) { + ((me->state & Button1Mask) && (me->window == frame.right_grip || + me->window == frame.left_grip)) || + ((me->state & Button3Mask) && (me->state & mod_mask) && + (frame.title == me->window || frame.label == me->window || + frame.handle == me->window || frame.window == me->window))) { unsigned int zones = screen->getResizeZones(); Corner corner;