aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathias <mathias>2007-08-28 07:36:57 (GMT)
committermathias <mathias>2007-08-28 07:36:57 (GMT)
commitadddf014bd80d5ea7595fc1e8df233a857b8d90f (patch)
tree3965423f10bcdf2915696ceb46cc28f34b00e803 /src
parent270782c8a57cd16658d4891ab2cc310bc9ad1aad (diff)
downloadfluxbox-adddf014bd80d5ea7595fc1e8df233a857b8d90f.zip
fluxbox-adddf014bd80d5ea7595fc1e8df233a857b8d90f.tar.bz2
dont use hardcoded Mod1Mask anymore
Diffstat (limited to 'src')
-rw-r--r--src/Window.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 9ee1c5e..8bf728f 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -2673,10 +2673,14 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) {
2673 2673
2674void FluxboxWindow::buttonReleaseEvent(XButtonEvent &re) { 2674void FluxboxWindow::buttonReleaseEvent(XButtonEvent &re) {
2675 2675
2676 if ((re.button == 1) && (re.state & Mod1Mask) && !screen().clickRaises()) 2676 if ((re.button == 1) && (re.state & Fluxbox::instance()->getModKey())
2677 && !screen().clickRaises()) {
2678
2677 if (!isMoving()) 2679 if (!isMoving())
2678 raise(); 2680 raise();
2679 2681
2682 }
2683
2680 if (isMoving()) 2684 if (isMoving())
2681 stopMoving(); 2685 stopMoving();
2682 else if (isResizing()) 2686 else if (isResizing())