mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-07 14:18:30 +02:00
screencopy: fix minor crash (#13566)
This commit is contained in:
parent
628cc608d2
commit
4e43a3358d
1 changed files with 4 additions and 1 deletions
|
|
@ -295,8 +295,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
Reference in a new issue