more alt-tab hanging fixes. Requires update in libkdecore/kglobalaccel.cpp
svn path=/trunk/kdebase/kwin/; revision=103034
This commit is contained in:
parent
e2ad16e509
commit
ab5b07786a
1 changed files with 12 additions and 2 deletions
|
@ -834,12 +834,14 @@ bool Workspace::startKDEWalkThroughWindows()
|
|||
LeaveWindowMask | PointerMotionMask),
|
||||
GrabModeAsync, GrabModeAsync,
|
||||
None, None, kwin_time ) != GrabSuccess ) {
|
||||
return FALSE;
|
||||
XUngrabKeyboard( qt_xdisplay(), kwin_time );
|
||||
return FALSE;
|
||||
}
|
||||
if ( XGrabKeyboard(qt_xdisplay(),
|
||||
root, FALSE,
|
||||
GrabModeAsync, GrabModeAsync,
|
||||
kwin_time) != GrabSuccess ) {
|
||||
XUngrabKeyboard( qt_xdisplay(), kwin_time );
|
||||
XUngrabPointer( qt_xdisplay(), kwin_time);
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -858,12 +860,14 @@ bool Workspace::startWalkThroughDesktops( int mode )
|
|||
LeaveWindowMask | PointerMotionMask),
|
||||
GrabModeAsync, GrabModeAsync,
|
||||
None, None, kwin_time ) != GrabSuccess ) {
|
||||
return FALSE;
|
||||
XUngrabKeyboard( qt_xdisplay(), kwin_time );
|
||||
return FALSE;
|
||||
}
|
||||
if ( XGrabKeyboard(qt_xdisplay(),
|
||||
root, FALSE,
|
||||
GrabModeAsync, GrabModeAsync,
|
||||
kwin_time) != GrabSuccess ) {
|
||||
XUngrabKeyboard( qt_xdisplay(), kwin_time );
|
||||
XUngrabPointer( qt_xdisplay(), kwin_time);
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -2575,6 +2579,12 @@ void Workspace::createKeybindings(){
|
|||
walkBackThroughDesktopListKeycode = keys->currentKey( "Walk back through desktop list" );
|
||||
walkThroughWindowsKeycode = keys->currentKey( "Walk through windows" );
|
||||
walkBackThroughWindowsKeycode = keys->currentKey( "Walk back through windows" );
|
||||
keys->setItemRawModeEnabled( "Walk through desktops", TRUE );
|
||||
keys->setItemRawModeEnabled( "Walk back through desktops", TRUE );
|
||||
keys->setItemRawModeEnabled( "Walk through desktop list", TRUE );
|
||||
keys->setItemRawModeEnabled( "Walk back through desktop list", TRUE );
|
||||
keys->setItemRawModeEnabled( "Walk through windows", TRUE );
|
||||
keys->setItemRawModeEnabled( "Walk back through windows", TRUE );
|
||||
}
|
||||
|
||||
void Workspace::slotSwitchDesktop1(){
|
||||
|
|
Loading…
Reference in a new issue