From b3bd9ea14484fddc7257d09b7754850576d3cb7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Tue, 5 May 2015 12:24:41 +0200 Subject: [PATCH] make switchWindow FROM stickies act on current VD it's probably the user expectation and few windows are on all desktops BUG: 331512 REVIEW: 123640 --- useractions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/useractions.cpp b/useractions.cpp index d23df970ae..a5c7f786fe 100644 --- a/useractions.cpp +++ b/useractions.cpp @@ -1691,7 +1691,7 @@ void Workspace::switchWindow(Direction direction) AbstractClient *c = active_client; Client *switchTo = 0; int bestScore = 0; - int d = c->desktop(); + int d = c->isOnAllDesktops() ? VirtualDesktopManager::self()->current() : c->desktop(); // Centre of the active window QPoint curPos(c->pos().x() + c->geometry().width() / 2, c->pos().y() + c->geometry().height() / 2);