aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/events/Monitors.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-30 19:40:19 +0200
committervaxerski <[email protected]>2022-08-30 19:40:19 +0200
commiteb658dcb612806cd801a438f4ec61701e7f26bc4 (patch)
tree74802a46c74b12d39ecb5968f45e7073c8bdd0d9 /src/events/Monitors.cpp
parent195ec2b092742671dbdb567cbab42b2d1efe2b65 (diff)
downloadHyprland-eb658dcb612806cd801a438f4ec61701e7f26bc4.tar.gz
Hyprland-eb658dcb612806cd801a438f4ec61701e7f26bc4.zip
finally fixed transformed snapshotsv0.12.1beta
Diffstat (limited to 'src/events/Monitors.cpp')
-rw-r--r--src/events/Monitors.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/events/Monitors.cpp b/src/events/Monitors.cpp
index 5d96d300..0fe481c8 100644
--- a/src/events/Monitors.cpp
+++ b/src/events/Monitors.cpp
@@ -191,7 +191,7 @@ void Events::listener_monitorFrame(void* owner, void* data) {
// if we have no tracking or full tracking, invalidate the entire monitor
if (*PDAMAGETRACKINGMODE == DAMAGE_TRACKING_NONE || *PDAMAGETRACKINGMODE == DAMAGE_TRACKING_MONITOR || PMONITOR->forceFullFrames > 0 || damageBlinkCleanup > 0) {
- pixman_region32_union_rect(&damage, &damage, 0, 0, (int)PMONITOR->vecTransformedSize.x, (int)PMONITOR->vecTransformedSize.y);
+ pixman_region32_union_rect(&damage, &damage, 0, 0, (int)PMONITOR->vecTransformedSize.x * 10, (int)PMONITOR->vecTransformedSize.y * 10); // wot?
pixman_region32_copy(&g_pHyprOpenGL->m_rOriginalDamageRegion, &damage);
} else {
@@ -241,7 +241,7 @@ void Events::listener_monitorFrame(void* owner, void* data) {
}
if (*PDAMAGEBLINK && damageBlinkCleanup == 0) {
- wlr_box monrect = {0, 0, PMONITOR->vecPixelSize.x, PMONITOR->vecPixelSize.y};
+ wlr_box monrect = {0, 0, PMONITOR->vecTransformedSize.x, PMONITOR->vecTransformedSize.y};
g_pHyprOpenGL->renderRect(&monrect, CColor(255,0,255,100), 0);
damageBlinkCleanup = 1;
} else if (*PDAMAGEBLINK) {