mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-27 02:54:36 +00:00
wayland/lock: add window null check in surface isVisible
This commit is contained in:
1 parent
b93d61385f
commit
d1760ed1f3
2 files changed
+5
-1
No files matched your search
@@ -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.
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user