Implement no_focus

Ref #2
This commit is contained in:
Drew DeVault 2017-04-26 15:29:42 -04:00
parent 3c1fc00f12
commit 51143a75af
8 changed files with 72 additions and 3 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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