diff options
author | Vaxry <[email protected]> | 2023-12-05 14:43:54 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2023-12-05 14:43:54 +0000 |
commit | 83248b6936c00ddef6a39fa31a37949ca1a34ffe (patch) | |
tree | cb0ffd69c0812d65c5f172b2646d0f4bd6cd02aa | |
parent | 3bb9c7c5cf4f2ee30bf821501499f2308d616f94 (diff) | |
download | Hyprland-83248b6936c00ddef6a39fa31a37949ca1a34ffe.tar.gz Hyprland-83248b6936c00ddef6a39fa31a37949ca1a34ffe.zip |
toplevelexport: fix getPreferredReadFormat param in captureToplevel
fixes #4043
-rw-r--r-- | src/protocols/ToplevelExport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/ToplevelExport.cpp b/src/protocols/ToplevelExport.cpp index dabad2ab..23ae996e 100644 --- a/src/protocols/ToplevelExport.cpp +++ b/src/protocols/ToplevelExport.cpp @@ -178,7 +178,7 @@ void CToplevelExportProtocolManager::captureToplevel(wl_client* client, wl_resou const auto PMONITOR = g_pCompositor->getMonitorFromID(PFRAME->pWindow->m_iMonitorID); g_pHyprRenderer->makeEGLCurrent(); - PFRAME->shmFormat = g_pHyprOpenGL->getPreferredReadFormat(PFRAME->pMonitor); + PFRAME->shmFormat = g_pHyprOpenGL->getPreferredReadFormat(PMONITOR); if (PFRAME->shmFormat == DRM_FORMAT_INVALID) { Debug::log(ERR, "No format supported by renderer in capture toplevel"); hyprland_toplevel_export_frame_v1_send_failed(resource); |