Don't overwrite current virtual desktop when restarting Xwayland

This commit is contained in:
Vlad Zahorodnii 2024-01-30 12:29:15 +02:00
parent 71ade59f4b
commit 993f110d59

View file

@ -314,9 +314,11 @@ void Workspace::initializeX11()
#ifndef QT_NO_SESSIONMANAGER
sessionRestored = qApp->isSessionRestored();
#endif
if (!sessionRestored) {
m_initialDesktop = client_info.currentDesktop();
vds->setCurrent(m_initialDesktop);
if (!waylandServer()) {
if (!sessionRestored) {
m_initialDesktop = client_info.currentDesktop();
vds->setCurrent(m_initialDesktop);
}
}
// TODO: better value