Handle the case when there's actually no key for 4th modifier.

svn path=/trunk/kdebase/kwin/; revision=306807
This commit is contained in:
Luboš Luňák 2004-04-27 14:59:47 +00:00
parent 984bb69341
commit 5da0e37909

View file

@ -1090,7 +1090,7 @@ bool Client::buttonPressEvent( Window w, int button, int state, int x, int y, in
uint keyModX = (options->keyCmdAllModKey() == Qt::Key_Meta) ?
KKeyNative::modX(KKey::WIN) :
KKeyNative::modX(KKey::ALT);
bool bModKeyHeld = ( state & KKeyNative::accelModMaskX()) == keyModX;
bool bModKeyHeld = keyModX != 0 && ( state & KKeyNative::accelModMaskX()) == keyModX;
if( isSplash()
&& button == Button1 && !bModKeyHeld )