When removing grabs from the set, first grab all, don't assume it's

there from somewhen before.


svn path=/trunk/KDE/kdebase/workspace/; revision=703900
This commit is contained in:
Luboš Luňák 2007-08-23 15:12:25 +00:00
parent 51e7514b11
commit f3997b2739

View file

@ -1062,6 +1062,11 @@ void Client::updateMouseGrab()
}
if( isActive() && !workspace()->forcedGlobalMouseGrab()) // see Workspace::establishTabBoxGrab()
{
// first grab all modifier combinations
XGrabButton( display(), AnyButton, AnyModifier, wrapperId(), FALSE,
ButtonPressMask,
GrabModeSync, GrabModeAsync,
None, None );
// remove the grab for no modifiers only if the window
// is unobscured or if the user doesn't want click raise
// (it is unobscured if it the topmost in the unconstrained stacking order, i.e. it is