bar: refresh before starting the main loop

This ensures the bar surface gets mapped, and a background + border
rendered, even though no module “refreshes” it during initialization.

Closes #116
This commit is contained in:
Daniel Eklöf 2021-10-17 16:48:09 +02:00
parent 515b36da0d
commit 94a0154c23
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 5 additions and 0 deletions

View file

@ -12,6 +12,8 @@
### Added
* ramp: can now have custom min and max values
(https://codeberg.org/dnkl/yambar/issues/103).
### Changed
* Made `libmpdclient` an optional dependency
@ -29,6 +31,8 @@
affected the “backlight”, “battery” and “removables” modules
(https://codeberg.org/dnkl/yambar/issues/109).
* foreign-toplevel: update bar when a top-level is closed.
* Bar not being mapped on an output before at least one module has
“refreshed” it (https://codeberg.org/dnkl/yambar/issues/116).
### Security

View file

@ -323,6 +323,7 @@ run(struct bar *_bar)
LOG_DBG("all modules started");
refresh(_bar);
bar->backend.iface->loop(_bar, &expose, &on_mouse);
LOG_DBG("shutting down");