aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-05-02 15:13:47 +0100
committerVaxry <[email protected]>2024-05-02 15:13:47 +0100
commiteeb78ef965435b68ad0fbdcff6dfc4cdf4500bc5 (patch)
tree5938abd0b1ed6de424331c9401acde22a04e2232
parent84278247194fd04e042821fd171be5ee59b0a8d0 (diff)
downloadHyprland-eeb78ef965435b68ad0fbdcff6dfc4cdf4500bc5.tar.gz
Hyprland-eeb78ef965435b68ad0fbdcff6dfc4cdf4500bc5.zip
fractional: set scale before configure
fixes #5842
-rw-r--r--src/protocols/SessionLock.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/protocols/SessionLock.cpp b/src/protocols/SessionLock.cpp
index a18b1f84..7ed66c97 100644
--- a/src/protocols/SessionLock.cpp
+++ b/src/protocols/SessionLock.cpp
@@ -1,5 +1,6 @@
#include "SessionLock.hpp"
#include "../Compositor.hpp"
+#include "FractionalScale.hpp"
#define LOGM PROTO::sessionLock->protoLog
@@ -59,6 +60,8 @@ CSessionLockSurface::CSessionLockSurface(SP<CExtSessionLockSurfaceV1> resource_,
},
this, "SessionLockSurface");
+ PROTO::fractional->sendScale(surface_, pMonitor_->scale);
+
sendConfigure();
listeners.monitorMode = pMonitor->events.modeChanged.registerListener([this](std::any data) { sendConfigure(); });