summaryrefslogtreecommitdiff
path: root/src/protocols/Screencopy.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-11-08 12:43:07 +0000
committerVaxry <vaxry@vaxry.net>2023-11-08 12:43:07 +0000
commitc619e6976f8d7f9637b4bee098159935412c2e99 (patch)
tree5a4e3f59aca5ee8d027e07375c7c2cd1a4fb81ac /src/protocols/Screencopy.cpp
parent751d2851cc270c3322ffe2eb83c156e4298a0c0e (diff)
screencopy: round boxes
fixes #3795
Diffstat (limited to 'src/protocols/Screencopy.cpp')
-rw-r--r--src/protocols/Screencopy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp
index 63ba8832..12170595 100644
--- a/src/protocols/Screencopy.cpp
+++ b/src/protocols/Screencopy.cpp
@@ -239,7 +239,7 @@ void CScreencopyProtocolManager::captureOutput(wl_client* client, wl_resource* r
}
int ow, oh;
wlr_output_effective_resolution(PFRAME->pMonitor->output, &ow, &oh);
- PFRAME->box.transform(PFRAME->pMonitor->transform, ow, oh).scale(PFRAME->pMonitor->scale);
+ PFRAME->box.transform(PFRAME->pMonitor->transform, ow, oh).scale(PFRAME->pMonitor->scale).round();
PFRAME->shmStride = (PSHMINFO->bpp / 8) * PFRAME->box.width;