summaryrefslogtreecommitdiff
path: root/src/desktop/Window.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-04-06 00:30:13 +0100
committerVaxry <vaxry@vaxry.net>2025-04-06 00:30:13 +0100
commite96b8ce4cc5e5856b6da653f1d92af856b5e72c9 (patch)
tree8c62d450be5ff930dbbdfd6a678918038c1f876d /src/desktop/Window.cpp
parent433b7881a3a46473fbc9df526870e23562b31bf8 (diff)
window: send fractional scale on updateScaleTransform
fixes #9889
Diffstat (limited to 'src/desktop/Window.cpp')
-rw-r--r--src/desktop/Window.cpp2
1 files changed, 2 insertions, 0 deletions
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);
},