aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/protocols/ToplevelExport.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-11-08 12:43:07 +0000
committerVaxry <[email protected]>2023-11-08 12:43:07 +0000
commitc619e6976f8d7f9637b4bee098159935412c2e99 (patch)
tree5a4e3f59aca5ee8d027e07375c7c2cd1a4fb81ac /src/protocols/ToplevelExport.cpp
parent751d2851cc270c3322ffe2eb83c156e4298a0c0e (diff)
downloadHyprland-c619e6976f8d7f9637b4bee098159935412c2e99.tar.gz
Hyprland-c619e6976f8d7f9637b4bee098159935412c2e99.zip
screencopy: round boxes
fixes #3795
Diffstat (limited to 'src/protocols/ToplevelExport.cpp')
-rw-r--r--src/protocols/ToplevelExport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/ToplevelExport.cpp b/src/protocols/ToplevelExport.cpp
index 11287660..3f442781 100644
--- a/src/protocols/ToplevelExport.cpp
+++ b/src/protocols/ToplevelExport.cpp
@@ -201,7 +201,7 @@ void CToplevelExportProtocolManager::captureToplevel(wl_client* client, wl_resou
PFRAME->box = {0, 0, (int)(PFRAME->pWindow->m_vRealSize.vec().x * PMONITOR->scale), (int)(PFRAME->pWindow->m_vRealSize.vec().y * PMONITOR->scale)};
int ow, oh;
wlr_output_effective_resolution(PMONITOR->output, &ow, &oh);
- PFRAME->box.transform(PMONITOR->transform, ow, oh);
+ PFRAME->box.transform(PMONITOR->transform, ow, oh).round();
PFRAME->shmStride = (PSHMINFO->bpp / 8) * PFRAME->box.width;