dont use hardcoded Mod1Mask anymore

This commit is contained in:
mathias 2007-08-28 07:36:57 +00:00
parent 270782c8a5
commit adddf014bd
2 changed files with 8 additions and 1 deletions

View file

@ -1,5 +1,8 @@
(Format: Year/Month/Day)
Changes for 1.0.0:
*07/08/27:
* Fix hardcoded Mod1, use ModKey() now (Mathias)
Window.cc
*07/08/20:
* Fix some focus issues with moving windows between workspaces (Mark)
FocusControl.cc

View file

@ -2673,10 +2673,14 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) {
void FluxboxWindow::buttonReleaseEvent(XButtonEvent &re) {
if ((re.button == 1) && (re.state & Mod1Mask) && !screen().clickRaises())
if ((re.button == 1) && (re.state & Fluxbox::instance()->getModKey())
&& !screen().clickRaises()) {
if (!isMoving())
raise();
}
if (isMoving())
stopMoving();
else if (isResizing())