diff options
author | 2019-05-03 23:26:18 -0400 | |
---|---|---|
committer | 2019-05-11 13:34:47 -0400 | |
commit | 184663c98fe316b20818b4f2d60b1b502c2a55e8 (patch) | |
tree | 983ee70377704f1940f0f242ce89fdf472989ebe /include/workspace.h | |
parent | Fix xdg-decoration unconfigured if set before first commit (diff) | |
download | sway-184663c98fe316b20818b4f2d60b1b502c2a55e8.tar.gz sway-184663c98fe316b20818b4f2d60b1b502c2a55e8.tar.zst sway-184663c98fe316b20818b4f2d60b1b502c2a55e8.zip |
Destroy swaybg client on reload
When reloading, this destroys the old config's swaybg client before
spawning the new config's swaybg. This fixes a race condition where the
old config's swaybg client's destroy was being called after the new
config's swaybg client was being spawned. This was causing the
reference to the new swaybg client to be removed and never destroyed.
This also modifies handle_swaybg_client_destroy to grab the config
reference using wl_container_of on the listener since the swaybg client
may be the old config swaybg client and should be used instead of the
global config instance
Diffstat (limited to 'include/workspace.h')
0 files changed, 0 insertions, 0 deletions