From 5da0e379090a7c33ea52d96621258eebaea180fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 27 Apr 2004 14:59:47 +0000 Subject: [PATCH] Handle the case when there's actually no key for 4th modifier. svn path=/trunk/kdebase/kwin/; revision=306807 --- events.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events.cpp b/events.cpp index c054979d00..72c8b9016b 100644 --- a/events.cpp +++ b/events.cpp @@ -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 )