diff options
author | 2018-10-08 19:28:53 +1000 | |
---|---|---|
committer | 2018-10-08 19:28:53 +1000 | |
commit | 82423991a8512ab97fbc41d1e190e709c58bc346 (patch) | |
tree | 837e45f94240e02e2ab0f8f931227943e00819b3 /include/swaybar/tray | |
parent | Merge pull request #2786 from swaywm/no-op-client-commands (diff) | |
download | sway-82423991a8512ab97fbc41d1e190e709c58bc346.tar.gz sway-82423991a8512ab97fbc41d1e190e709c58bc346.tar.zst sway-82423991a8512ab97fbc41d1e190e709c58bc346.zip |
Reload config using idle event
This patch makes it so when you run reload, the actual reloading is
deferred to the next time the event loop becomes idle. This avoids
several use-after-frees and removes the workarounds we have to avoid
them.
When you run reload, we validate the config before creating the idle
event. This is so the reload command will still return an error if there
are validation errors. To allow this, load_main_config has been adjusted
so it doesn't apply the config if validating is true rather than
applying it unconditionally.
This also fixes a memory leak in the reload command where if the config
failed to load, the bar_ids list would not be freed.
Diffstat (limited to 'include/swaybar/tray')
0 files changed, 0 insertions, 0 deletions