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,10 +314,12 @@ void Workspace::initializeX11()
#ifndef QT_NO_SESSIONMANAGER
sessionRestored = qApp->isSessionRestored();
#endif
if (!waylandServer()) {
if (!sessionRestored) {
m_initialDesktop = client_info.currentDesktop();
vds->setCurrent(m_initialDesktop);
}
}
// TODO: better value
rootInfo->setActiveWindow(XCB_WINDOW_NONE);