From 1a145bba6121201126ac2ffcbb8b74b7d36c95e7 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 13 Aug 2002 17:49:34 +0000 Subject: [PATCH 1/1] resize with alt+right click in all the same places that alt+left click moves --- src/Window.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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; -- 2.45.2