diff options
author | emersion <contact@emersion.fr> | 2018-05-27 13:13:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-27 13:13:11 +0100 |
commit | e4c54b04ce90d2d051ba7343ec5b9dce1bbb6755 (patch) | |
tree | f96102bdb4bbc030a9e7033b13178acf74413bea /include | |
parent | Merge pull request #2048 from RyanDwyer/title-format-app-id (diff) | |
parent | Rename view_get_type to view_get_shell (diff) | |
download | sway-e4c54b04ce90d2d051ba7343ec5b9dce1bbb6755.tar.gz sway-e4c54b04ce90d2d051ba7343ec5b9dce1bbb6755.tar.zst sway-e4c54b04ce90d2d051ba7343ec5b9dce1bbb6755.zip |
Merge pull request #2049 from RyanDwyer/criteria-shell
Add shell criteria token
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/criteria.h | 1 | ||||
-rw-r--r-- | include/sway/tree/view.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/sway/criteria.h b/include/sway/criteria.h index 74da132c..bd3ca0ac 100644 --- a/include/sway/criteria.h +++ b/include/sway/criteria.h | |||
@@ -18,6 +18,7 @@ struct criteria { | |||
18 | char *target; // workspace or output name for `assign` criteria | 18 | char *target; // workspace or output name for `assign` criteria |
19 | 19 | ||
20 | pcre *title; | 20 | pcre *title; |
21 | pcre *shell; | ||
21 | pcre *app_id; | 22 | pcre *app_id; |
22 | pcre *class; | 23 | pcre *class; |
23 | pcre *instance; | 24 | pcre *instance; |
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 0fb8f1b3..a8bf4955 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h | |||
@@ -201,7 +201,7 @@ const char *view_get_window_role(struct sway_view *view); | |||
201 | 201 | ||
202 | uint32_t view_get_window_type(struct sway_view *view); | 202 | uint32_t view_get_window_type(struct sway_view *view); |
203 | 203 | ||
204 | const char *view_get_type(struct sway_view *view); | 204 | const char *view_get_shell(struct sway_view *view); |
205 | 205 | ||
206 | void view_configure(struct sway_view *view, double ox, double oy, int width, | 206 | void view_configure(struct sway_view *view, double ox, double oy, int width, |
207 | int height); | 207 | int height); |