From 56fce0adc7ebd59d8fbfa682fb598eeb82e98541 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 ce1c28e13a..1432627f9b 100644 --- a/useractions.cpp +++ b/useractions.cpp @@ -1682,7 +1682,7 @@ void Workspace::switchWindow(Direction direction) Client *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);