protocols/lock: fix missing output enter on surface (#12448)

This commit is contained in:
Tom Englund 2025-11-26 23:12:17 +01:00 committed by GitHub
parent d21f2e5729
commit 4036e35e73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,9 +57,13 @@ CSessionLockSurface::CSessionLockSurface(SP<CExtSessionLockSurfaceV1> resource_,
m_surface.reset();
});
if (m_monitor)
if (m_monitor) {
PROTO::fractional->sendScale(surface_, m_monitor->m_scale);
if (m_surface)
m_surface->enter(m_monitor.lock());
}
sendConfigure();
m_listeners.monitorMode = m_monitor->m_events.modeChanged.listen([this] { sendConfigure(); });