aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-04-26 17:20:12 -0400
committerGitHub <noreply@github.com>2017-04-26 17:20:12 -0400
commit11b4c3454c65375db88901165f0a69c978e3977f (patch)
tree97fabe0d36c2c5574a2ff47238eeed58fa200fd0 /include/sway
parent3c1fc00f12e2777f6349a5d671b8d66c5997eb2b (diff)
parent537261f23f194e152c0adf25a2740375929e9cd3 (diff)
Merge pull request #1196 from SirCmpwn/no_focus
Implement no_focus
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/commands.h1
-rw-r--r--include/sway/config.h1
-rw-r--r--include/sway/criteria.h3
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;
sway_cmd cmd_move;
sway_cmd cmd_new_float;
sway_cmd cmd_new_window;
+sway_cmd cmd_no_focus;
sway_cmd cmd_orientation;
sway_cmd cmd_output;
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 {
list_t *output_configs;
list_t *input_configs;
list_t *criteria;
+ list_t *no_focus;
list_t *active_bar_modifiers;
struct sway_mode *current_mode;
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);
// Returns a list of all containers that match the given list of tokens.
list_t *container_for(list_t *tokens);
+// Returns true if any criteria in the given list matches this container
+bool criteria_any(swayc_t *cont, list_t *criteria);
+
#endif