aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIan Fan <ianfan0@gmail.com>2019-02-14 15:43:34 +0000
committerIan Fan <ianfan0@gmail.com>2019-02-15 14:09:14 +0000
commit5484f308b9aa53ab9c13d670d84a7fc35d447c1a (patch)
treeea3d270c931178a43eb8e28657808c84570b3ef2 /include
parent96de2b539c00992003664d0de225cc28c2fb9e54 (diff)
swaybar: prevent signal handler from firing during termination
This prevents a heap-use-after-free crash when sway terminates.
Diffstat (limited to 'include')
-rw-r--r--include/swaybar/bar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h
index 2d9ba0d9..2518d5aa 100644
--- a/include/swaybar/bar.h
+++ b/include/swaybar/bar.h
@@ -46,6 +46,8 @@ struct swaybar {
#if HAVE_TRAY
struct swaybar_tray *tray;
#endif
+
+ bool running;
};
struct swaybar_output {