fractional: set scale before configure

fixes #5842
This commit is contained in:
Vaxry 2024-05-02 15:13:47 +01:00
parent 8427824719
commit eeb78ef965
1 changed files with 3 additions and 0 deletions

View File

@ -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(); });