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,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
|
||||
|
|
Loading…
Reference in a new issue