mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
swaybar: add free_hotspots helper function
This commit is contained in:
parent
a67fa8a05d
commit
19f0bf3864
3 changed files with 15 additions and 18 deletions
|
|
@ -491,14 +491,7 @@ static const struct wl_callback_listener output_frame_listener = {
|
|||
void render_frame(struct swaybar_output *output) {
|
||||
assert(output->surface != NULL);
|
||||
|
||||
struct swaybar_hotspot *hotspot, *tmp;
|
||||
wl_list_for_each_safe(hotspot, tmp, &output->hotspots, link) {
|
||||
if (hotspot->destroy) {
|
||||
hotspot->destroy(hotspot->data);
|
||||
}
|
||||
wl_list_remove(&hotspot->link);
|
||||
free(hotspot);
|
||||
}
|
||||
free_hotspots(&output->hotspots);
|
||||
|
||||
cairo_surface_t *recorder = cairo_recording_surface_create(
|
||||
CAIRO_CONTENT_COLOR_ALPHA, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue