diff --git a/bar/wayland.c b/bar/wayland.c index e9eb7c6..23a7a57 100644 --- a/bar/wayland.c +++ b/bar/wayland.c @@ -699,6 +699,7 @@ handle_global_remove(void *data, struct wl_registry *registry, uint32_t name) tll_foreach(backend->monitors, it) { struct monitor *mon = &it->item; + /* if (mon->wl_name == name) { LOG_INFO("%s disconnected/disabled", mon->name); @@ -708,9 +709,10 @@ handle_global_remove(void *data, struct wl_registry *registry, uint32_t name) backend->monitor = NULL; } - //tll_remove(backend->monitors, it); + tll_remove(backend->monitors, it); return; } + */ } LOG_WARN("unknown global removed: 0x%08x", name);