fix(client): remove unnecessary wl_output_roundtrip

At this point we're not awaiting any protocol events and flushing
wayland queue makes little sense. As #1019 shows, it may be even harmful
as an extra roundtrip could process wl_output disappearance and delete
output object right from under our code.
This commit is contained in:
Aleksei Bavshin 2021-02-08 22:30:01 -08:00
parent f3ce7ff86c
commit 6585381230
No known key found for this signature in database
GPG Key ID: 4F071603387A382A
1 changed files with 0 additions and 1 deletions

View File

@ -124,7 +124,6 @@ void waybar::Client::handleOutputDone(void *data, struct zxdg_output_v1 * /*xdg_
auto configs = client->getOutputConfigs(output);
if (!configs.empty()) {
wl_display_roundtrip(client->wl_display);
for (const auto &config : configs) {
client->bars.emplace_back(std::make_unique<Bar>(&output, config));
}