mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-17 21:13:48 -07:00
surface: avoid crashes on fading out layers
This commit is contained in:
@@ -227,7 +227,7 @@ SP<CWLSurface> CWLSurface::fromResource(SP<CWLSurfaceResource> pSurface) {
|
|||||||
bool CWLSurface::keyboardFocusable() const {
|
bool CWLSurface::keyboardFocusable() const {
|
||||||
if (m_pWindowOwner || m_pPopupOwner || m_pSubsurfaceOwner)
|
if (m_pWindowOwner || m_pPopupOwner || m_pSubsurfaceOwner)
|
||||||
return true;
|
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 m_pLayerOwner->layerSurface->current.interactivity != ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_NONE;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user