Merge branch 'Plasma/5.15'

icc-effect-5.17.5
Vlad Zagorodniy 2019-03-08 10:39:26 +02:00
commit 0984f6ccfd
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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);