From f8a47598bac2763b41c4e63e18c5ed9a5125cd47 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 17 May 2019 13:40:04 +0200 Subject: [PATCH] fix: roundtrip before bar creation --- src/client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client.cpp b/src/client.cpp index 8713ec82..b927684b 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -153,6 +153,7 @@ void waybar::Client::handleName(void * data, struct zxdg_output_v1 * /*xdg_ wl_output_destroy(output->output); zxdg_output_v1_destroy(output->xdg_output); } else { + wl_display_roundtrip(client->wl_display); for (const auto &config : configs) { client->bars.emplace_back(std::make_unique(output.get(), config)); Glib::RefPtr screen = client->bars.back()->window.get_screen();