diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/commands.h | 1 | ||||
-rw-r--r-- | include/sway/criteria.h | 5 | ||||
-rw-r--r-- | include/sway/tree/container.h | 2 | ||||
-rw-r--r-- | include/sway/tree/view.h | 9 | ||||
-rw-r--r-- | include/sway/tree/workspace.h | 4 |
5 files changed, 19 insertions, 2 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index 3ebd0002..1e93e2a3 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h | |||
@@ -152,6 +152,7 @@ sway_cmd cmd_swaybg_command; | |||
152 | sway_cmd cmd_swap; | 152 | sway_cmd cmd_swap; |
153 | sway_cmd cmd_title_format; | 153 | sway_cmd cmd_title_format; |
154 | sway_cmd cmd_unmark; | 154 | sway_cmd cmd_unmark; |
155 | sway_cmd cmd_urgent; | ||
155 | sway_cmd cmd_workspace; | 156 | sway_cmd cmd_workspace; |
156 | sway_cmd cmd_ws_auto_back_and_forth; | 157 | sway_cmd cmd_ws_auto_back_and_forth; |
157 | sway_cmd cmd_workspace_layout; | 158 | sway_cmd cmd_workspace_layout; |
diff --git a/include/sway/criteria.h b/include/sway/criteria.h index bd3ca0ac..6a8337c5 100644 --- a/include/sway/criteria.h +++ b/include/sway/criteria.h | |||
@@ -6,9 +6,10 @@ | |||
6 | #include "tree/view.h" | 6 | #include "tree/view.h" |
7 | 7 | ||
8 | enum criteria_type { | 8 | enum criteria_type { |
9 | CT_COMMAND = 1 << 0, | 9 | CT_COMMAND = 1 << 0, |
10 | CT_ASSIGN_OUTPUT = 1 << 1, | 10 | CT_ASSIGN_OUTPUT = 1 << 1, |
11 | CT_ASSIGN_WORKSPACE = 1 << 2, | 11 | CT_ASSIGN_WORKSPACE = 1 << 2, |
12 | CT_NO_FOCUS = 1 << 3, | ||
12 | }; | 13 | }; |
13 | 14 | ||
14 | struct criteria { | 15 | struct criteria { |
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 04e50fc6..ca7a3288 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -316,4 +316,6 @@ void container_floating_move_to(struct sway_container *con, | |||
316 | */ | 316 | */ |
317 | void container_set_dirty(struct sway_container *container); | 317 | void container_set_dirty(struct sway_container *container); |
318 | 318 | ||
319 | bool container_has_urgent_child(struct sway_container *container); | ||
320 | |||
319 | #endif | 321 | #endif |
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 21d6403e..e270f851 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h | |||
@@ -69,6 +69,11 @@ struct sway_view { | |||
69 | bool border_bottom; | 69 | bool border_bottom; |
70 | bool border_left; | 70 | bool border_left; |
71 | bool border_right; | 71 | bool border_right; |
72 | bool using_csd; | ||
73 | |||
74 | struct timespec urgent; | ||
75 | bool allow_request_urgent; | ||
76 | struct wl_event_source *urgent_timer; | ||
72 | 77 | ||
73 | bool destroying; | 78 | bool destroying; |
74 | 79 | ||
@@ -305,4 +310,8 @@ void view_update_marks_textures(struct sway_view *view); | |||
305 | */ | 310 | */ |
306 | bool view_is_visible(struct sway_view *view); | 311 | bool view_is_visible(struct sway_view *view); |
307 | 312 | ||
313 | void view_set_urgent(struct sway_view *view, bool enable); | ||
314 | |||
315 | bool view_is_urgent(struct sway_view *view); | ||
316 | |||
308 | #endif | 317 | #endif |
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h index c72a4ac0..bc95317a 100644 --- a/include/sway/tree/workspace.h +++ b/include/sway/tree/workspace.h | |||
@@ -10,6 +10,7 @@ struct sway_workspace { | |||
10 | struct sway_view *fullscreen; | 10 | struct sway_view *fullscreen; |
11 | struct sway_container *floating; | 11 | struct sway_container *floating; |
12 | list_t *output_priority; | 12 | list_t *output_priority; |
13 | bool urgent; | ||
13 | }; | 14 | }; |
14 | 15 | ||
15 | extern char *prev_workspace_name; | 16 | extern char *prev_workspace_name; |
@@ -42,4 +43,7 @@ void workspace_output_add_priority(struct sway_container *workspace, | |||
42 | 43 | ||
43 | struct sway_container *workspace_output_get_highest_available( | 44 | struct sway_container *workspace_output_get_highest_available( |
44 | struct sway_container *ws, struct sway_container *exclude); | 45 | struct sway_container *ws, struct sway_container *exclude); |
46 | |||
47 | void workspace_detect_urgent(struct sway_container *workspace); | ||
48 | |||
45 | #endif | 49 | #endif |