summaryrefslogtreecommitdiff
path: root/src/protocols/ToplevelExport.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-09-08 11:07:04 +0200
committerGitHub <noreply@github.com>2025-09-08 11:07:04 +0200
commit02bb350bb3355b5f08e7b0635be10ee47c69346a (patch)
tree5dd75680837fd2586980aa069308f5c39d246283 /src/protocols/ToplevelExport.cpp
parentbce43f74eb8e4570d0d043f5fc8257eef7a57399 (diff)
screencopy: add force 8 bit to fix 10b screensharing (#11623)
ref https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/270
Diffstat (limited to 'src/protocols/ToplevelExport.cpp')
-rw-r--r--src/protocols/ToplevelExport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/ToplevelExport.cpp b/src/protocols/ToplevelExport.cpp
index 37e90b6f..eb0a39aa 100644
--- a/src/protocols/ToplevelExport.cpp
+++ b/src/protocols/ToplevelExport.cpp
@@ -114,7 +114,7 @@ CToplevelExportFrame::CToplevelExportFrame(SP<CHyprlandToplevelExportFrameV1> re
return;
}
- m_dmabufFormat = PMONITOR->m_output->state->state().drmFormat;
+ m_dmabufFormat = g_pHyprOpenGL->getPreferredReadFormat(PMONITOR);
m_box = {0, 0, sc<int>(m_window->m_realSize->value().x * PMONITOR->m_scale), sc<int>(m_window->m_realSize->value().y * PMONITOR->m_scale)};