aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-09-08 18:41:03 (GMT)
committermarkt <markt>2007-09-08 18:41:03 (GMT)
commit6a21f547072ce992c9b3255eb47dcfb5e748e531 (patch)
tree785916b2699d1c09c1e7003158c1e7427fdde761 /src/Window.cc
parent667d4d301441cb3ef7fdb189d383da084fb80b23 (diff)
downloadfluxbox-6a21f547072ce992c9b3255eb47dcfb5e748e531.zip
fluxbox-6a21f547072ce992c9b3255eb47dcfb5e748e531.tar.bz2
fix crash from changing toolbar visibility, some cleanup, and porting change from trunk
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc
index b9ef2ff..a5cf6fd 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -2605,10 +2605,14 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) {
2605 2605
2606void FluxboxWindow::buttonReleaseEvent(XButtonEvent &re) { 2606void FluxboxWindow::buttonReleaseEvent(XButtonEvent &re) {
2607 2607
2608 if ((re.button == 1) && (re.state & Mod1Mask) && !screen().clickRaises()) 2608 if ((re.button == 1) && (re.state & Fluxbox::instance()->getModKey())
2609 && !screen().clickRaises()) {
2610
2609 if (!isMoving()) 2611 if (!isMoving())
2610 raise(); 2612 raise();
2611 2613
2614 }
2615
2612 if (isMoving()) 2616 if (isMoving())
2613 stopMoving(); 2617 stopMoving();
2614 else if (isResizing()) 2618 else if (isResizing())