From f3997b2739071538e7f5060b18c6fec69bacc67f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 23 Aug 2007 15:12:25 +0000 Subject: [PATCH] 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 --- events.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/events.cpp b/events.cpp index c61133b0c4..3ceb036706 100644 --- a/events.cpp +++ b/events.cpp @@ -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