wayland/lock: notify on screen change

This commit is contained in:
outfoxxed 2024-06-13 16:25:07 -07:00
parent 523de78796
commit d8b72b4c31
Signed by: outfoxxed
GPG Key ID: 4C88A185FB89301E
1 changed files with 4 additions and 4 deletions

View File

@ -257,10 +257,10 @@ void WlSessionLockSurface::setScreen(QScreen* qscreen) {
QObject::connect(qscreen, &QObject::destroyed, this, &WlSessionLockSurface::onScreenDestroyed);
}
if (this->window == nullptr) {
this->mScreen = qscreen;
emit this->screenChanged();
} else this->window->setScreen(qscreen);
if (this->window == nullptr) this->mScreen = qscreen;
else this->window->setScreen(qscreen);
emit this->screenChanged();
}
void WlSessionLockSurface::onScreenDestroyed() { this->mScreen = nullptr; }