summaryrefslogtreecommitdiff
path: root/src/protocols/Screencopy.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-08-30 13:17:26 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-08-30 13:17:26 +0200
commit32f4059b37cde3def606127d843f143380bc2048 (patch)
tree561f5a0f385932dd46d50ef2d94b9df75afec417 /src/protocols/Screencopy.cpp
parent84c4a14dadf8d28f57068d39cfec2612c15becd1 (diff)
screencopy: fix region sharing
translate before scaling if we are not dividing the coords
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 11d63612..40eb97f3 100644
--- a/src/protocols/Screencopy.cpp
+++ b/src/protocols/Screencopy.cpp
@@ -441,8 +441,8 @@ bool CScreencopyProtocolManager::copyFrameDmabuf(SScreencopyFrame* frame) {
float glMatrix[9];
wlr_matrix_identity(glMatrix);
- wlr_matrix_scale(glMatrix, frame->pMonitor->vecPixelSize.x, frame->pMonitor->vecPixelSize.y);
wlr_matrix_translate(glMatrix, -frame->box.x, -frame->box.y);
+ wlr_matrix_scale(glMatrix, frame->pMonitor->vecPixelSize.x, frame->pMonitor->vecPixelSize.y);
if (!wlr_renderer_begin_with_buffer(g_pCompositor->m_sWLRRenderer, frame->buffer)) {
wlr_texture_destroy(sourceTex);