From d8b72b4c31ea471ab56895671506d710f960189f Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Thu, 13 Jun 2024 16:25:07 -0700 Subject: [PATCH] wayland/lock: notify on screen change --- src/wayland/session_lock.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wayland/session_lock.cpp b/src/wayland/session_lock.cpp index ac1cf7d..bb5ed13 100644 --- a/src/wayland/session_lock.cpp +++ b/src/wayland/session_lock.cpp @@ -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; }