From 664224c7f20689f16881e7ba2d9835038ce20507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 4 May 2005 12:19:00 +0000 Subject: [PATCH] Start from the active window in CDE-style Alt+Tab, not from the topmost window. Not that I'm sure that's the way it works in CDE, but I don't think it makes any real difference, and it works with windows kept on top/bottom. BUG:84424 svn path=/trunk/KDE/kdebase/kwin/; revision=409245 --- tabbox.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tabbox.cpp b/tabbox.cpp index 5d1f01c1c7..a97fc6353b 100644 --- a/tabbox.cpp +++ b/tabbox.cpp @@ -884,7 +884,7 @@ void Workspace::walkThroughDesktops( bool forward ) void Workspace::CDEWalkThroughWindows( bool forward ) { - Client* c = topClientOnDesktop( currentDesktop()); + Client* c = activeClient(); Client* nc = c; bool options_traverse_all; { @@ -898,8 +898,8 @@ void Workspace::CDEWalkThroughWindows( bool forward ) { nc = previousStaticClient(nc); } while (nc && nc != c && - (( !options_traverse_all && !nc->isOnDesktop(currentDesktop())) || - nc->isMinimized() || !nc->wantsTabFocus() ) ); + (( !options_traverse_all && !nc->isOnDesktop(currentDesktop())) || + nc->isMinimized() || !nc->wantsTabFocus() ) ); } else {