mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-27 02:54:36 +00:00
wayland/lock: notify on screen change
This commit is contained in:
1 file changed
+4
-4
@@ -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; }
|
||||
|
||||
Reference in new issue
Block a user