wayland/lock: notify on screen change
This commit is contained in:
parent
523de78796
commit
d8b72b4c31
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue