From 4f3aa8c6b07381ea459a5d6c12dcf2774aa002eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 22 Oct 2021 18:05:20 +0200 Subject: [PATCH] =?UTF-8?q?bar:=20do=20a=20synchronous=20=E2=80=9Crefresh?= =?UTF-8?q?=E2=80=9D=20*before*=20starting=20the=20modules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This ensures the surface has been mapped, and our “current” output is known. This fixes an issue where modules depending on the current output being known failed to update correctly during startup. --- bar/bar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bar/bar.c b/bar/bar.c index 8b19a43..4f1895f 100644 --- a/bar/bar.c +++ b/bar/bar.c @@ -293,6 +293,7 @@ run(struct bar *_bar) } set_cursor(_bar, "left_ptr"); + expose(_bar); /* Start modules */ thrd_t thrd_left[max(bar->left.count, 1)]; @@ -323,7 +324,6 @@ run(struct bar *_bar) LOG_DBG("all modules started"); - refresh(_bar); bar->backend.iface->loop(_bar, &expose, &on_mouse); LOG_DBG("shutting down");