diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-11 22:49:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-11 22:49:40 -0400 |
commit | 2511adffc29996b64d01d85b3de31de9a2af9096 (patch) | |
tree | fff764c0ef0b28466bb55ceeefa7e617a37cef5d /sway/tree/view.c | |
parent | 3e1bf721c69cb6df70c3dc3d3d4933e987339676 (diff) | |
parent | 94e42f985778ce402b4c47bf8c38ee4233b6204d (diff) |
Merge pull request #1953 from RyanDwyer/criteria-focused
Implement __focused__ criteria
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 7d921e0e..ca84d82e 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -79,6 +79,13 @@ uint32_t view_get_x11_window_id(struct sway_view *view) { return 0; } +const char *view_get_window_role(struct sway_view *view) { + if (view->impl->get_string_prop) { + return view->impl->get_string_prop(view, VIEW_PROP_WINDOW_ROLE); + } + return NULL; +} + uint32_t view_get_window_type(struct sway_view *view) { if (view->impl->get_int_prop) { return view->impl->get_int_prop(view, VIEW_PROP_WINDOW_TYPE); |