summaryrefslogtreecommitdiff
path: root/src/desktop/WLSurface.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2024-07-27 22:07:57 +0200
committervaxerski <vaxry@vaxry.net>2024-07-27 22:15:36 +0200
commit6edfdd63a1fc87a6d874364c404c9b6f852c7096 (patch)
treeeb4556cf9130bf2ecc55ded11b01ebee52c763a8 /src/desktop/WLSurface.cpp
parent04b40ea2ec85dd1d74ff18edc046a233b65024ac (diff)
surface: avoid crashes on fading out layers
Diffstat (limited to 'src/desktop/WLSurface.cpp')
-rw-r--r--src/desktop/WLSurface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop/WLSurface.cpp b/src/desktop/WLSurface.cpp
index e1348a90..3c91a142 100644
--- a/src/desktop/WLSurface.cpp
+++ b/src/desktop/WLSurface.cpp
@@ -227,7 +227,7 @@ SP<CWLSurface> CWLSurface::fromResource(SP<CWLSurfaceResource> pSurface) {
bool CWLSurface::keyboardFocusable() const {
if (m_pWindowOwner || m_pPopupOwner || m_pSubsurfaceOwner)
return true;
- if (m_pLayerOwner)
+ if (m_pLayerOwner && m_pLayerOwner->layerSurface)
return m_pLayerOwner->layerSurface->current.interactivity != ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_NONE;
return false;
}