diff options
Diffstat (limited to 'sway/config/output.c')
-rw-r--r-- | sway/config/output.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index fb8a9ee5..0022485b 100644 --- a/sway/config/output.c +++ b/sway/config/output.c | |||
@@ -482,9 +482,11 @@ void free_output_config(struct output_config *oc) { | |||
482 | 482 | ||
483 | static void handle_swaybg_client_destroy(struct wl_listener *listener, | 483 | static void handle_swaybg_client_destroy(struct wl_listener *listener, |
484 | void *data) { | 484 | void *data) { |
485 | wl_list_remove(&config->swaybg_client_destroy.link); | 485 | struct sway_config *sway_config = |
486 | wl_list_init(&config->swaybg_client_destroy.link); | 486 | wl_container_of(listener, sway_config, swaybg_client_destroy); |
487 | config->swaybg_client = NULL; | 487 | wl_list_remove(&sway_config->swaybg_client_destroy.link); |
488 | wl_list_init(&sway_config->swaybg_client_destroy.link); | ||
489 | sway_config->swaybg_client = NULL; | ||
488 | } | 490 | } |
489 | 491 | ||
490 | static bool _spawn_swaybg(char **command) { | 492 | static bool _spawn_swaybg(char **command) { |