From b10b9660004b3dfaf9e11a305d78f24955b089a4 Mon Sep 17 00:00:00 2001 From: ccos89 <133320139+ccos89@users.noreply.github.com> Date: Sat, 25 Oct 2025 10:57:46 +0000 Subject: [PATCH] screencopy: fix missing XBGR2101010 format with screencopy_force_8b (#12125) Adds missing DRM_FORMAT_XBGR2101010 to screencopy_force_8b that leads to "no more input formats" Pipewire error for monitors set to 10-bit color depth/where currentFormat is XBGR2101010. Fixes implementation of #11623 Fixes hyprwm/xdg-desktop-portal-hyprland#270 Fixes hyprwm/xdg-desktop-portal-hyprland#102 --- src/render/OpenGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 436ba26c..90a8e679 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -3323,7 +3323,7 @@ uint32_t CHyprOpenGLImpl::getPreferredReadFormat(PHLMONITOR pMonitor) { auto fmt = pMonitor->m_output->state->state().drmFormat; - if (fmt == DRM_FORMAT_BGRA1010102 || fmt == DRM_FORMAT_ARGB2101010 || fmt == DRM_FORMAT_XRGB2101010 || fmt == DRM_FORMAT_BGRX1010102) + if (fmt == DRM_FORMAT_BGRA1010102 || fmt == DRM_FORMAT_ARGB2101010 || fmt == DRM_FORMAT_XRGB2101010 || fmt == DRM_FORMAT_BGRX1010102 || fmt == DRM_FORMAT_XBGR2101010) return DRM_FORMAT_XRGB8888; return fmt;