From bb34fb1c5508ff466d4af9a933ec1b5459d566a7 Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Tue, 7 Aug 2001 11:15:12 +0000 Subject: [PATCH] fixed hanging keyboard in CDE-style Alt-Tab svn path=/trunk/kdebase/kwin/; revision=109474 --- workspace.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index 36043c4ff5..bc8141a0fc 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -792,10 +792,11 @@ void Workspace::slotWalkThroughWindows() return; if( tab_grab || control_grab ) return; - if ( options->altTabStyle == Options::CDE || !options->focusPolicyIsReasonable() ) + if ( options->altTabStyle == Options::CDE || !options->focusPolicyIsReasonable() ) { + XUngrabKeyboard(qt_xdisplay(), kwin_time); // need that because of accelerator raw mode // CDE style raise / lower CDEWalkThroughWindows( true ); - else { + } else { if( areModKeysDepressed( walkThroughWindowsKeycode ) ) { if ( startKDEWalkThroughWindows() ) KDEWalkThroughWindows( true );