Remove desktop() usage in Workspace::activateClient()
Explicitly make the last virtual desktop current. This improves code readability and gets rid of a desktop() usage.
This commit is contained in:
parent
d6de38c1d6
commit
e5f6039a68
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ void Workspace::activateClient(AbstractClient* c, bool force)
|
||||||
raiseClient(c);
|
raiseClient(c);
|
||||||
if (!c->isOnCurrentDesktop()) {
|
if (!c->isOnCurrentDesktop()) {
|
||||||
++block_focus;
|
++block_focus;
|
||||||
VirtualDesktopManager::self()->setCurrent(c->desktop());
|
VirtualDesktopManager::self()->setCurrent(c->desktops().constLast());
|
||||||
--block_focus;
|
--block_focus;
|
||||||
}
|
}
|
||||||
#ifdef KWIN_BUILD_ACTIVITIES
|
#ifdef KWIN_BUILD_ACTIVITIES
|
||||||
|
|
Loading…
Reference in a new issue