summaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authorRyan Dwyer <[email protected]>2018-05-15 11:24:16 +1000
committerRyan Dwyer <[email protected]>2018-05-15 11:24:16 +1000
commit4d1edfcba90854bd7f37ecb1b36fe4f05c37dda3 (patch)
treedf558830f4c0f5bc9e8943cfbf60532f2293aeda /sway/commands.c
parent22d38600d0edbb35029b3076c14e0e119dbf3dd2 (diff)
Change unmark implemention to match i3's
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 31d241a8..9b6d6459 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -302,7 +302,7 @@ struct cmd_results *execute_command(char *_exec, struct sway_seat *seat) {
head = exec;
do {
// Extract criteria (valid for this command list only).
- bool has_criteria = false;
+ config->handler_context.using_criteria = false;
if (*head == '[') {
char *error = NULL;
struct criteria *criteria = criteria_parse(head, &error);
@@ -315,7 +315,7 @@ struct cmd_results *execute_command(char *_exec, struct sway_seat *seat) {
views = criteria_get_views(criteria);
head += strlen(criteria->raw);
criteria_destroy(criteria);
- has_criteria = true;
+ config->handler_context.using_criteria = true;
// Skip leading whitespace
head += strspn(head, whitespace);
}
@@ -352,7 +352,7 @@ struct cmd_results *execute_command(char *_exec, struct sway_seat *seat) {
goto cleanup;
}
- if (!has_criteria) {
+ if (!config->handler_context.using_criteria) {
// without criteria, the command acts upon the focused
// container
config->handler_context.current_container =