forked from external/yambar
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:
parent
515b36da0d
commit
94a0154c23
2 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,8 @@
|
||||||
### Added
|
### Added
|
||||||
* ramp: can now have custom min and max values
|
* ramp: can now have custom min and max values
|
||||||
(https://codeberg.org/dnkl/yambar/issues/103).
|
(https://codeberg.org/dnkl/yambar/issues/103).
|
||||||
|
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
* Made `libmpdclient` an optional dependency
|
* Made `libmpdclient` an optional dependency
|
||||||
|
@ -29,6 +31,8 @@
|
||||||
affected the “backlight”, “battery” and “removables” modules
|
affected the “backlight”, “battery” and “removables” modules
|
||||||
(https://codeberg.org/dnkl/yambar/issues/109).
|
(https://codeberg.org/dnkl/yambar/issues/109).
|
||||||
* foreign-toplevel: update bar when a top-level is closed.
|
* 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
|
### Security
|
||||||
|
|
|
@ -323,6 +323,7 @@ run(struct bar *_bar)
|
||||||
|
|
||||||
LOG_DBG("all modules started");
|
LOG_DBG("all modules started");
|
||||||
|
|
||||||
|
refresh(_bar);
|
||||||
bar->backend.iface->loop(_bar, &expose, &on_mouse);
|
bar->backend.iface->loop(_bar, &expose, &on_mouse);
|
||||||
|
|
||||||
LOG_DBG("shutting down");
|
LOG_DBG("shutting down");
|
||||||
|
|
Loading…
Add table
Reference in a new issue