mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-30 03:45:59 +01:00
screencopy: fix incorrect resource error post
This commit is contained in:
parent
a80ba54bbc
commit
110f3fd658
1 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ void CScreencopyProtocolManager::captureOutput(wl_client* client, wl_resource* r
|
||||||
PFRAME->shmFormat = wlr_output_preferred_read_format(PFRAME->pMonitor->output);
|
PFRAME->shmFormat = wlr_output_preferred_read_format(PFRAME->pMonitor->output);
|
||||||
if (PFRAME->shmFormat == DRM_FORMAT_INVALID) {
|
if (PFRAME->shmFormat == DRM_FORMAT_INVALID) {
|
||||||
Debug::log(ERR, "No format supported by renderer in capture output");
|
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);
|
removeFrame(PFRAME);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -179,7 +179,7 @@ void CScreencopyProtocolManager::captureOutput(wl_client* client, wl_resource* r
|
||||||
const auto PSHMINFO = drm_get_pixel_format_info(PFRAME->shmFormat);
|
const auto PSHMINFO = drm_get_pixel_format_info(PFRAME->shmFormat);
|
||||||
if (!PSHMINFO) {
|
if (!PSHMINFO) {
|
||||||
Debug::log(ERR, "No pixel format supported by renderer in capture output");
|
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);
|
removeFrame(PFRAME);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue