Don't overwrite current virtual desktop when restarting Xwayland
This commit is contained in:
parent
71ade59f4b
commit
993f110d59
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue