aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-22 13:38:40 +0200
committervaxerski <[email protected]>2022-08-22 13:38:40 +0200
commit52318692f0dd980d60127e5d1eb0b73855dc3bc4 (patch)
treeb18288587e9afd22b5ca1f4ed73c0485a9651975
parent86be6c3884033e35bf3efef4ba705d3be72cbe87 (diff)
downloadHyprland-52318692f0dd980d60127e5d1eb0b73855dc3bc4.tar.gz
Hyprland-52318692f0dd980d60127e5d1eb0b73855dc3bc4.zip
clean up temp logic in snapshots
-rw-r--r--src/render/OpenGL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index b9b6c0c0..9119d99e 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -993,7 +993,7 @@ void CHyprOpenGLImpl::renderSnapshot(SLayerSurface** pLayer) {
wlr_box monbox = {0, 0, PMONITOR->vecTransformedSize.x, PMONITOR->vecTransformedSize.y};
pixman_region32_t fakeDamage;
- pixman_region32_init_rect(&fakeDamage, 0, 0, PMONITOR->vecPixelSize.x * 20, PMONITOR->vecPixelSize.y * 20);
+ pixman_region32_init_rect(&fakeDamage, 0, 0, PMONITOR->vecTransformedSize.x, PMONITOR->vecTransformedSize.y);
m_bEndFrame = true;