XDG shell title for Wayland clients, WM_NAME for
XWayland clients.
+ *type*
+ Internal heuristics for Wayland clients,
+ NET_WM_WINDOW_TYPE for XWayland clients.
+
This argument is optional.
*then*
struct wl_list link;
char *identifier;
char *title;
+ int window_type;
};
struct xdg_toplevel_view {
current_view_query->identifier = xstrdup(content);
} else if (!strcasecmp(nodename, "title")) {
current_view_query->title = xstrdup(content);
+ } else if (!strcmp(nodename, "type")) {
+ current_view_query->window_type = parse_window_type(content);
}
}
match &= match_glob(query->title, title);
}
+ if (match && query->window_type >= 0) {
+ empty = false;
+ match &= view_contains_window_type(view, query->window_type);
+ }
+
return !empty && match;
}