wayland/lock: add window null check in surface isVisible

This commit is contained in:
Aditya Alok authored and outfoxxed committed 2026-05-07 23:40:27 -07:00
1 parent b93d61385f
commit d1760ed1f3
2 files changed
+5 -1

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
## Bug Fixes
- Fixed ScreencopyView not displaying when only lock surfaces are shown.
- Fixed WlSessionLockSurface.visible crashing if accessed before backing surface creation.
+4 -1
View File
@@ -274,7 +274,10 @@ void WlSessionLockSurface::show() {
QQuickItem* WlSessionLockSurface::contentItem() const { return this->mContentItem; }
bool WlSessionLockSurface::isVisible() const { return this->window->isVisible(); }
bool WlSessionLockSurface::isVisible() const {
if (this->window == nullptr) return false;
return this->window->isVisible();
}
qint32 WlSessionLockSurface::width() const {
if (this->window == nullptr) return 0;