mirror of
https://github.com/swaywm/sway.git
synced 2026-04-28 06:46:26 -04:00
Fix a race condition when respawning swaybg
This commit is contained in:
parent
464a3b4fdd
commit
1ba55be265
1 changed files with 5 additions and 3 deletions
|
|
@ -482,9 +482,11 @@ void free_output_config(struct output_config *oc) {
|
||||||
|
|
||||||
static void handle_swaybg_client_destroy(struct wl_listener *listener,
|
static void handle_swaybg_client_destroy(struct wl_listener *listener,
|
||||||
void *data) {
|
void *data) {
|
||||||
wl_list_remove(&config->swaybg_client_destroy.link);
|
struct wl_client *client = data;
|
||||||
wl_list_init(&config->swaybg_client_destroy.link);
|
wl_list_remove(&listener->link);
|
||||||
|
if (client == config->swaybg_client) {
|
||||||
config->swaybg_client = NULL;
|
config->swaybg_client = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool _spawn_swaybg(char **command) {
|
static bool _spawn_swaybg(char **command) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue