From 52be7d116432346a199e871dfc1d6b573a786015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 6 Jan 2004 09:42:00 +0000 Subject: [PATCH] Fix last commit. svn path=/trunk/kdebase/kwin/; revision=277199 --- events.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/events.cpp b/events.cpp index 02a4bb5dc9..51281e0be7 100644 --- a/events.cpp +++ b/events.cpp @@ -945,7 +945,6 @@ void Client::ungrabButton( int modifier ) */ void Client::updateMouseGrab() { - XUngrabButton( qt_xdisplay(), AnyButton, AnyModifier, wrapperId()); if( isActive() ) { // remove the grab for no modifiers only if the window @@ -959,11 +958,14 @@ void Client::updateMouseGrab() ungrabButton( ControlMask | ShiftMask ); } else + { + XUngrabButton( qt_xdisplay(), AnyButton, AnyModifier, wrapperId()); // simply grab all modifier combinations XGrabButton(qt_xdisplay(), AnyButton, AnyModifier, wrapperId(), FALSE, ButtonPressMask, GrabModeSync, GrabModeAsync, None, None ); + } } int qtToX11Button( Qt::ButtonState button )