diff --git a/src/tabbox/tabbox.cpp b/src/tabbox/tabbox.cpp index 0cbdafe26c..2420eb743e 100644 --- a/src/tabbox/tabbox.cpp +++ b/src/tabbox/tabbox.cpp @@ -943,7 +943,7 @@ void TabBox::CDEWalkThroughWindows(bool forward) shadeActivate(nc); } else { if (!nc->isOnCurrentDesktop()) { - VirtualDesktopManager::self()->setCurrent(nc->desktop()); + VirtualDesktopManager::self()->setCurrent(nc->desktops().constLast()); } Workspace::self()->raiseWindow(nc); }