mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
Only destroy swaybar surface via ipc when needed
This commit is contained in:
parent
2045ac3472
commit
920d85d35f
1 changed files with 3 additions and 1 deletions
|
@ -528,8 +528,10 @@ static bool handle_barconfig_update(struct swaybar *bar, const char *payload,
|
||||||
ipc_get_workspaces(bar);
|
ipc_get_workspaces(bar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool moving_layer = strcmp(oldcfg->mode, newcfg->mode) != 0;
|
||||||
|
|
||||||
free_config(oldcfg);
|
free_config(oldcfg);
|
||||||
determine_bar_visibility(bar, true);
|
determine_bar_visibility(bar, moving_layer);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue