mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 13:05:58 +01:00
renderer: don't make snapshots of invisible windows on close
This commit is contained in:
parent
28ef18a921
commit
859841f4d1
1 changed files with 3 additions and 0 deletions
|
@ -1535,6 +1535,9 @@ void CHyprOpenGLImpl::makeWindowSnapshot(CWindow* pWindow) {
|
||||||
if (!PMONITOR || !PMONITOR->output || PMONITOR->vecPixelSize.x <= 0 || PMONITOR->vecPixelSize.y <= 0)
|
if (!PMONITOR || !PMONITOR->output || PMONITOR->vecPixelSize.x <= 0 || PMONITOR->vecPixelSize.y <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!g_pHyprRenderer->shouldRenderWindow(pWindow))
|
||||||
|
return; // ignore, window is not being rendered
|
||||||
|
|
||||||
wlr_output_attach_render(PMONITOR->output, nullptr);
|
wlr_output_attach_render(PMONITOR->output, nullptr);
|
||||||
|
|
||||||
// we need to "damage" the entire monitor
|
// we need to "damage" the entire monitor
|
||||||
|
|
Loading…
Reference in a new issue