Make Alt+left mouse move windows only when no other keyboard modifier is

pressed.

svn path=/trunk/kdebase/kwin/; revision=139841
This commit is contained in:
Luboš Luňák 2002-03-01 11:11:31 +00:00
parent dd29e3723c
commit d0dc9e979d

View file

@ -409,7 +409,7 @@ bool WindowWrapper::x11Event( XEvent * e)
uint keyModX = (options->keyCmdAllModKey() == Qt::Key_Meta) ?
KKeyNative::modX(KKey::WIN) :
KKeyNative::modX(KKey::ALT);
bool bModKeyHeld = e->xbutton.state & keyModX;
bool bModKeyHeld = ( e->xbutton.state & KKeyNative::accelModMaskX()) == keyModX;
if ( ((Client*)parentWidget())->isActive()
&& ( options->focusPolicy != Options::ClickToFocus