make alt-right click resizing work on the window handles

This commit is contained in:
Dana Jansens 2002-09-11 02:14:55 +00:00
parent 185a1a6a40
commit 15ca6904fc

View file

@ -3815,11 +3815,14 @@ void BlackboxWindow::motionNotifyEvent(const XMotionEvent *me) {
frame.handle == me->window || frame.window == me->window)) { frame.handle == me->window || frame.window == me->window)) {
beginMove(me->x_root, me->y_root); beginMove(me->x_root, me->y_root);
} else if ((functions & Func_Resize) && } else if ((functions & Func_Resize) &&
((me->state & Button1Mask) && (me->window == frame.right_grip || ((me->state & Button1Mask) &&
(me->window == frame.right_grip ||
me->window == frame.left_grip)) || me->window == frame.left_grip)) ||
((me->state & Button3Mask) && (me->state & mod_mask) && ((me->state & Button3Mask) && (me->state & mod_mask) &&
(frame.title == me->window || frame.label == me->window || (frame.title == me->window || frame.label == me->window ||
frame.handle == me->window || frame.window == me->window))) { frame.handle == me->window || frame.window == me->window ||
frame.right_grip == me->window ||
frame.left_grip == me->window))) {
unsigned int zones = screen->getResizeZones(); unsigned int zones = screen->getResizeZones();
Corner corner; Corner corner;