summaryrefslogtreecommitdiff
path: root/src/protocols/Screencopy.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2023-04-05 15:19:49 +0100
committervaxerski <vaxry@vaxry.net>2023-04-05 15:19:49 +0100
commit110f3fd6585c8b92d3bc2dbaabbd2c1a1f76de7a (patch)
tree8bfe105941a1881d5f11b83c9e8e34b569bbabc5 /src/protocols/Screencopy.cpp
parenta80ba54bbc6a423ab0e79730442e09aea832d9d6 (diff)
screencopy: fix incorrect resource error post
Diffstat (limited to 'src/protocols/Screencopy.cpp')
-rw-r--r--src/protocols/Screencopy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp
index 9ab43c41..007f32b4 100644
--- a/src/protocols/Screencopy.cpp
+++ b/src/protocols/Screencopy.cpp
@@ -171,7 +171,7 @@ void CScreencopyProtocolManager::captureOutput(wl_client* client, wl_resource* r
PFRAME->shmFormat = wlr_output_preferred_read_format(PFRAME->pMonitor->output);
if (PFRAME->shmFormat == DRM_FORMAT_INVALID) {
Debug::log(ERR, "No format supported by renderer in capture output");
- zwlr_screencopy_frame_v1_send_failed(resource);
+ zwlr_screencopy_frame_v1_send_failed(PFRAME->resource);
removeFrame(PFRAME);
return;
}
@@ -179,7 +179,7 @@ void CScreencopyProtocolManager::captureOutput(wl_client* client, wl_resource* r
const auto PSHMINFO = drm_get_pixel_format_info(PFRAME->shmFormat);
if (!PSHMINFO) {
Debug::log(ERR, "No pixel format supported by renderer in capture output");
- zwlr_screencopy_frame_v1_send_failed(resource);
+ zwlr_screencopy_frame_v1_send_failed(PFRAME->resource);
removeFrame(PFRAME);
return;
}