aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-05-27 13:13:11 +0100
committerGitHub <noreply@github.com>2018-05-27 13:13:11 +0100
commite4c54b04ce90d2d051ba7343ec5b9dce1bbb6755 (patch)
treef96102bdb4bbc030a9e7033b13178acf74413bea /sway/tree/view.c
parent0c4b7907a01890730ad35a963da511d1008d9533 (diff)
parentd3dd7e5bae374cb890f80836d872229a37ef639f (diff)
Merge pull request #2049 from RyanDwyer/criteria-shell
Add shell criteria token
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index d72a2235..d91182ed 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -107,7 +107,7 @@ uint32_t view_get_window_type(struct sway_view *view) {
return 0;
}
-const char *view_get_type(struct sway_view *view) {
+const char *view_get_shell(struct sway_view *view) {
switch(view->type) {
case SWAY_VIEW_XDG_SHELL_V6:
return "xdg_shell_v6";
@@ -657,7 +657,7 @@ static size_t parse_title_format(struct sway_view *view, char *buffer) {
const char *app_id = view_get_app_id(view);
const char *class = view_get_class(view);
const char *instance = view_get_instance(view);
- const char *shell = view_get_type(view);
+ const char *shell = view_get_shell(view);
size_t title_len = title ? strlen(title) : 0;
size_t app_id_len = app_id ? strlen(app_id) : 0;
size_t class_len = class ? strlen(class) : 0;