From e96b8ce4cc5e5856b6da653f1d92af856b5e72c9 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 6 Apr 2025 00:30:13 +0100 Subject: [PATCH] window: send fractional scale on updateScaleTransform fixes #9889 --- src/desktop/Window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index 41af094b..100300d4 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -17,6 +17,7 @@ #include "../protocols/XDGShell.hpp" #include "../protocols/core/Compositor.hpp" #include "../protocols/ContentType.hpp" +#include "../protocols/FractionalScale.hpp" #include "../xwayland/XWayland.hpp" #include "../helpers/Color.hpp" #include "../events/Events.hpp" @@ -397,6 +398,7 @@ void CWindow::updateSurfaceScaleTransformDetails(bool force) { if (PSURFACE && PSURFACE->m_fLastScale == PMONITOR->scale) return; + PROTO::fractional->sendScale(s, PMONITOR->scale); g_pCompositor->setPreferredScaleForSurface(s, PMONITOR->scale); g_pCompositor->setPreferredTransformForSurface(s, PMONITOR->transform); },