diff options
Diffstat (limited to 'sway/criteria.c')
-rw-r--r-- | sway/criteria.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/criteria.c b/sway/criteria.c index 9317a180..dec5fed7 100644 --- a/sway/criteria.c +++ b/sway/criteria.c | |||
@@ -56,7 +56,7 @@ static bool criteria_matches_view(struct criteria *criteria, | |||
56 | } | 56 | } |
57 | 57 | ||
58 | if (criteria->shell) { | 58 | if (criteria->shell) { |
59 | const char *shell = view_get_type(view); | 59 | const char *shell = view_get_shell(view); |
60 | if (!shell || regex_cmp(shell, criteria->shell) != 0) { | 60 | if (!shell || regex_cmp(shell, criteria->shell) != 0) { |
61 | return false; | 61 | return false; |
62 | } | 62 | } |
@@ -284,7 +284,7 @@ static char *get_focused_prop(enum criteria_token token) { | |||
284 | value = view_get_instance(view); | 284 | value = view_get_instance(view); |
285 | break; | 285 | break; |
286 | case T_SHELL: | 286 | case T_SHELL: |
287 | value = view_get_type(view); | 287 | value = view_get_shell(view); |
288 | break; | 288 | break; |
289 | case T_TITLE: | 289 | case T_TITLE: |
290 | value = view_get_class(view); | 290 | value = view_get_class(view); |