Fix last commit.

svn path=/trunk/kdebase/kwin/; revision=277199
This commit is contained in:
Luboš Luňák 2004-01-06 09:42:00 +00:00
parent 981e44f780
commit 52be7d1164

View file

@ -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 )