aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-02-10 18:18:36 (GMT)
committermarkt <markt>2007-02-10 18:18:36 (GMT)
commit4eb87522a0c7954d9bd6cc0aac38cc64ac204412 (patch)
tree3171fa39053a8f48d345baf079820f35ff0ac20e /src/Window.cc
parent6b92622d6e7431fc7891a56c9bea89bc80f8e91e (diff)
downloadfluxbox_pavel-4eb87522a0c7954d9bd6cc0aac38cc64ac204412.zip
fluxbox_pavel-4eb87522a0c7954d9bd6cc0aac38cc64ac204412.tar.bz2
it was still possible to move a window by grabbing the border with session.ignoreBorder: true
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc17
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