diff options
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/Window.cc b/src/Window.cc index 4c6c681..c83acd7 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -2689,7 +2689,8 @@ void FluxboxWindow::motionNotifyEvent(XMotionEvent &me) { | |||
2689 | || frame().label() == me.window | 2689 | || frame().label() == me.window |
2690 | || frame().tabcontainer() == me.window | 2690 | || frame().tabcontainer() == me.window |
2691 | || frame().handle() == me.window | 2691 | || frame().handle() == me.window |
2692 | || frame().window() == me.window); | 2692 | || frame().window() == me.window |
2693 | && !Fluxbox::instance()->getIgnoreBorder()); | ||
2693 | 2694 | ||
2694 | if (Fluxbox::instance()->getIgnoreBorder() | 2695 | if (Fluxbox::instance()->getIgnoreBorder() |
2695 | && !(me.state & Fluxbox::instance()->getModKey()) // really should check for exact matches | 2696 | && !(me.state & Fluxbox::instance()->getModKey()) // really should check for exact matches |
@@ -2800,10 +2801,16 @@ void FluxboxWindow::motionNotifyEvent(XMotionEvent &me) { | |||
2800 | 2801 | ||
2801 | screen().showPosition(dx, dy); | 2802 | screen().showPosition(dx, dy); |
2802 | } // end if moving | 2803 | } // end if moving |
2803 | } else if (functions.resize && | 2804 | } else if (isResizing() // if we're already resizing the window |
2804 | (((me.state & Button1Mask) && (me.window == frame().gripRight() || | 2805 | || functions.resize |
2805 | me.window == frame().gripLeft())) || | 2806 | // or if we're dragging one of the grips |
2806 | me.window == frame().window())) { | 2807 | && ((me.state & Button1Mask) |
2808 | && (me.window == frame().gripRight() | ||
2809 | || me.window == frame().gripLeft()) | ||
2810 | // or if we're right-click dragging the border | ||
2811 | || (me.state & Button3Mask) | ||
2812 | && me.window == frame().window() | ||
2813 | && !Fluxbox::instance()->getIgnoreBorder())) { | ||
2807 | 2814 | ||
2808 | if (! resizing) { | 2815 | if (! resizing) { |
2809 | 2816 | ||