screencopy: fix minor crash (#13566)
This commit is contained in:
parent
3f169ee5de
commit
c47ae950f4
1 changed files with 4 additions and 1 deletions
|
|
@ -293,8 +293,11 @@ void CScreenshareFrame::renderWindow() {
|
|||
return;
|
||||
|
||||
auto pointerSurface = Desktop::View::CWLSurface::fromResource(pointerSurfaceResource);
|
||||
if (!pointerSurface)
|
||||
return;
|
||||
|
||||
if (!pointerSurface || pointerSurface->getSurfaceBoxGlobal()->intersection(m_session->m_window->getFullWindowBoundingBox()).empty())
|
||||
auto box = pointerSurface->getSurfaceBoxGlobal();
|
||||
if (!box.has_value() || box->intersection(m_session->m_window->getFullWindowBoundingBox()).empty())
|
||||
return;
|
||||
|
||||
if (Desktop::focusState()->window() != m_session->m_window)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue