Skip to content

Commit 4428f14

Browse files
committed
platform/wayland: roundtrip after new display
1 parent 205daa4 commit 4428f14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/platforms/WaylandPlatform.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ bool CWaylandPlatform::attempt() {
103103
TRACE(g_logger->log(HT_LOG_TRACE, " > binding to global: {} (version {}) with id {}", name, 4, id));
104104
auto newOutput = makeShared<CWaylandOutput>((wl_proxy*)wl_registry_bind((wl_registry*)m_waylandState.registry->resource(), id, &wl_output_interface, 4), id);
105105
m_outputs.emplace_back(newOutput);
106+
wl_display_roundtrip(m_waylandState.display); // sync display. We emit a new event where the user expects full data. this is not a common event, sync is ok.
106107
if (m_waylandState.initialized)
107108
g_backend->m_events.outputAdded.emit(newOutput);
108109
} else if (NAME == ext_session_lock_manager_v1_interface.name) {

0 commit comments

Comments
 (0)