diff --git a/effects/squash/package/metadata.desktop b/effects/squash/package/metadata.desktop index 179d4405d9..7b3ab09d80 100644 --- a/effects/squash/package/metadata.desktop +++ b/effects/squash/package/metadata.desktop @@ -38,6 +38,7 @@ Name[pl]=Ściskanie Name[pt]=Esmagar Name[pt_BR]=Achatar Name[ru]=Сжатие +Name[sk]=Rozpučiť Name[sv]=Kläm Name[uk]=Складування Name[x-test]=xxSquashxx diff --git a/workspace.cpp b/workspace.cpp index 1a564f2651..3422c1e9e6 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -428,10 +428,10 @@ void Workspace::initWithX11() // TODO: only in X11 mode // Extra NETRootInfo instance in Client mode is needed to get the values of the properties NETRootInfo client_info(connection(), NET::ActiveWindow | NET::CurrentDesktop); - if (!qApp->isSessionRestored()) + if (!qApp->isSessionRestored()) { m_initialDesktop = client_info.currentDesktop(); - if (!VirtualDesktopManager::self()->setCurrent(m_initialDesktop)) - VirtualDesktopManager::self()->setCurrent(1); + vds->setCurrent(m_initialDesktop); + } // TODO: better value rootInfo->setActiveWindow(None);