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
This commit is contained in:
Luboš Luňák 2005-05-04 12:19:00 +00:00
parent 2322833673
commit 664224c7f2

View file

@ -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
{