diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-15 22:43:33 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-16 08:19:25 +1000 |
commit | 315d5311b2004b9e148e7b52a7de161b6dfe3878 (patch) | |
tree | 1a70d1d73cbffb26bf432c1c7b395ee996651ad3 /include/sway/tree/view.h | |
parent | Merge pull request #2280 from ianyfan/leaks (diff) | |
download | sway-315d5311b2004b9e148e7b52a7de161b6dfe3878.tar.gz sway-315d5311b2004b9e148e7b52a7de161b6dfe3878.tar.zst sway-315d5311b2004b9e148e7b52a7de161b6dfe3878.zip |
Implement urgency base functionality
Introduces a command to manually set urgency, as well as rendering of
urgent views, sending the IPC event, removing urgency after focused for
one second, and matching urgent views via criteria.
Diffstat (limited to 'include/sway/tree/view.h')
-rw-r--r-- | include/sway/tree/view.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 21d6403e..9022f7a6 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h | |||
@@ -70,6 +70,10 @@ struct sway_view { | |||
70 | bool border_left; | 70 | bool border_left; |
71 | bool border_right; | 71 | bool border_right; |
72 | 72 | ||
73 | struct timespec urgent; | ||
74 | bool allow_request_urgent; | ||
75 | struct wl_event_source *urgent_timer; | ||
76 | |||
73 | bool destroying; | 77 | bool destroying; |
74 | 78 | ||
75 | list_t *executed_criteria; // struct criteria * | 79 | list_t *executed_criteria; // struct criteria * |
@@ -305,4 +309,8 @@ void view_update_marks_textures(struct sway_view *view); | |||
305 | */ | 309 | */ |
306 | bool view_is_visible(struct sway_view *view); | 310 | bool view_is_visible(struct sway_view *view); |
307 | 311 | ||
312 | void view_set_urgent(struct sway_view *view, bool enable); | ||
313 | |||
314 | bool view_is_urgent(struct sway_view *view); | ||
315 | |||
308 | #endif | 316 | #endif |