From a83bca6db5348033b21ebb4ed7bc189d39e2b0c4 Mon Sep 17 00:00:00 2001 From: Calvin Lee Date: Sun, 4 Feb 2018 10:37:46 -0700 Subject: Handle swaybar status line errors The event loop API was redesigned to avoid race conditions as well. Fixes #1583 --- include/swaybar/status_line.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/swaybar/status_line.h') diff --git a/include/swaybar/status_line.h b/include/swaybar/status_line.h index 0664ddee..3ec0fcd0 100644 --- a/include/swaybar/status_line.h +++ b/include/swaybar/status_line.h @@ -48,6 +48,12 @@ struct status_line *init_status_line(); */ bool handle_status_line(struct bar *bar); +/** + * This should be called if statusline input cannot be accessed. + * It will set an error statusline instead of using the status command + */ +void handle_status_hup(struct status_line *status); + /** * Handle mouse clicks. */ -- cgit v1.2.3-54-g00ecf