diff options
author | 2017-04-26 17:20:12 -0400 | |
---|---|---|
committer | 2017-04-26 17:20:12 -0400 | |
commit | 11b4c3454c65375db88901165f0a69c978e3977f (patch) | |
tree | 97fabe0d36c2c5574a2ff47238eeed58fa200fd0 /include | |
parent | Merge pull request #1194 from snoack/version (diff) | |
parent | Fix handling of floating windows (diff) | |
download | sway-11b4c3454c65375db88901165f0a69c978e3977f.tar.gz sway-11b4c3454c65375db88901165f0a69c978e3977f.tar.zst sway-11b4c3454c65375db88901165f0a69c978e3977f.zip |
Merge pull request #1196 from SirCmpwn/no_focus
Implement no_focus
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/commands.h | 1 | ||||
-rw-r--r-- | include/sway/config.h | 1 | ||||
-rw-r--r-- | include/sway/criteria.h | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index 91f2ae01..078652e7 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h | |||
@@ -135,6 +135,7 @@ sway_cmd cmd_mouse_warping; | |||
135 | sway_cmd cmd_move; | 135 | sway_cmd cmd_move; |
136 | sway_cmd cmd_new_float; | 136 | sway_cmd cmd_new_float; |
137 | sway_cmd cmd_new_window; | 137 | sway_cmd cmd_new_window; |
138 | sway_cmd cmd_no_focus; | ||
138 | sway_cmd cmd_orientation; | 139 | sway_cmd cmd_orientation; |
139 | sway_cmd cmd_output; | 140 | sway_cmd cmd_output; |
140 | sway_cmd cmd_permit; | 141 | sway_cmd cmd_permit; |
diff --git a/include/sway/config.h b/include/sway/config.h index 2de90434..35f8d5f7 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -250,6 +250,7 @@ struct sway_config { | |||
250 | list_t *output_configs; | 250 | list_t *output_configs; |
251 | list_t *input_configs; | 251 | list_t *input_configs; |
252 | list_t *criteria; | 252 | list_t *criteria; |
253 | list_t *no_focus; | ||
253 | list_t *active_bar_modifiers; | 254 | list_t *active_bar_modifiers; |
254 | struct sway_mode *current_mode; | 255 | struct sway_mode *current_mode; |
255 | struct bar_config *current_bar; | 256 | struct bar_config *current_bar; |
diff --git a/include/sway/criteria.h b/include/sway/criteria.h index 022c48a8..c5ed9857 100644 --- a/include/sway/criteria.h +++ b/include/sway/criteria.h | |||
@@ -36,4 +36,7 @@ list_t *criteria_for(swayc_t *cont); | |||
36 | // Returns a list of all containers that match the given list of tokens. | 36 | // Returns a list of all containers that match the given list of tokens. |
37 | list_t *container_for(list_t *tokens); | 37 | list_t *container_for(list_t *tokens); |
38 | 38 | ||
39 | // Returns true if any criteria in the given list matches this container | ||
40 | bool criteria_any(swayc_t *cont, list_t *criteria); | ||
41 | |||
39 | #endif | 42 | #endif |