diff options
| author | Calvin Lee <cyrus296@gmail.com> | 2018-02-04 10:37:46 -0700 |
|---|---|---|
| committer | Calvin Lee <cyrus296@gmail.com> | 2018-02-04 12:31:07 -0700 |
| commit | a83bca6db5348033b21ebb4ed7bc189d39e2b0c4 (patch) | |
| tree | ab10cd02219ad353a97794139e92e8801ce5871f /include/swaybar/status_line.h | |
| parent | 6ffcb031f9612b347971047f73ce070206048736 (diff) | |
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(); 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. */ bool status_line_mouse_event(struct bar *bar, int x, int y, uint32_t button); |
