From 110f3fd6585c8b92d3bc2dbaabbd2c1a1f76de7a Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 5 Apr 2023 15:19:49 +0100 Subject: [PATCH] screencopy: fix incorrect resource error post --- src/protocols/Screencopy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp index 9ab43c416..007f32b44 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; }