From: Dana Jansens Date: Tue, 13 Aug 2002 17:49:34 +0000 (+0000) Subject: resize with alt+right click in all the same places that alt+left click moves X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=1a145bba6121201126ac2ffcbb8b74b7d36c95e7;hp=aa2ec5f217d2f390edc32e7bcf211d88f2290f8b;p=chaz%2Fopenbox resize with alt+right click in all the same places that alt+left click moves --- diff --git a/src/Window.cc b/src/Window.cc index 3890aa50..0b161f6c 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -3611,15 +3611,17 @@ void BlackboxWindow::motionNotifyEvent(const XMotionEvent *me) { } 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;