diff --git a/CHANGELOG.md b/CHANGELOG.md index 938c91e..2ea91e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ * Crash when `udev_monitor_receive_device()` returned `NULL`. This affected the “backlight”, “battery” and “removables” modules (https://codeberg.org/dnkl/yambar/issues/109). +* foreign-toplevel: update bar when a top-level is closed. ### Security diff --git a/modules/foreign-toplevel.c b/modules/foreign-toplevel.c index ef45b3b..2997042 100644 --- a/modules/foreign-toplevel.c +++ b/modules/foreign-toplevel.c @@ -372,6 +372,9 @@ closed(void *data, struct zwlr_foreign_toplevel_handle_v1 *handle) } } mtx_unlock(&mod->lock); + + const struct bar *bar = mod->bar; + bar->refresh(bar); } static void