Fix last commit.
svn path=/trunk/kdebase/kwin/; revision=277199
This commit is contained in:
parent
981e44f780
commit
52be7d1164
1 changed files with 3 additions and 1 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue