surface: avoid crashes on fading out layers
This commit is contained in:
parent
04b40ea2ec
commit
6edfdd63a1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue