diff options
author | 2018-02-04 10:37:46 -0700 | |
---|---|---|
committer | 2018-02-04 12:31:07 -0700 | |
commit | a83bca6db5348033b21ebb4ed7bc189d39e2b0c4 (patch) | |
tree | ab10cd02219ad353a97794139e92e8801ce5871f /include/swaybar/status_line.h | |
parent | Merge pull request #1579 from tmccombs/patch-1 (diff) | |
download | sway-a83bca6db5348033b21ebb4ed7bc189d39e2b0c4.tar.gz sway-a83bca6db5348033b21ebb4ed7bc189d39e2b0c4.tar.zst sway-a83bca6db5348033b21ebb4ed7bc189d39e2b0c4.zip |
Handle swaybar status line errors
The event loop API was redesigned to avoid race conditions as well.
Fixes #1583
Diffstat (limited to 'include/swaybar/status_line.h')
-rw-r--r-- | include/swaybar/status_line.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 | |||
@@ -49,6 +49,12 @@ struct status_line *init_status_line(); | |||
49 | bool handle_status_line(struct bar *bar); | 49 | bool handle_status_line(struct bar *bar); |
50 | 50 | ||
51 | /** | 51 | /** |
52 | * This should be called if statusline input cannot be accessed. | ||
53 | * It will set an error statusline instead of using the status command | ||
54 | */ | ||
55 | void handle_status_hup(struct status_line *status); | ||
56 | |||
57 | /** | ||
52 | * Handle mouse clicks. | 58 | * Handle mouse clicks. |
53 | */ | 59 | */ |
54 | bool status_line_mouse_event(struct bar *bar, int x, int y, uint32_t button); | 60 | bool status_line_mouse_event(struct bar *bar, int x, int y, uint32_t button); |