diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-13 08:17:46 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-14 11:38:09 +1000 |
commit | bffcb496cc002d9c8a41285eaabd908b322a9c99 (patch) | |
tree | 05804e10646a52a83a9bfd8c23318bb603f66cc4 /sway/tree | |
parent | 1e9aaa54a85e98d6b46ca594b4f50770f71047ea (diff) | |
download | sway-bffcb496cc002d9c8a41285eaabd908b322a9c99.tar.xz |
Revert "Revert "Merge pull request #1953 from RyanDwyer/criteria-focused""
This reverts commit ac0e62584f6101277b76622a7274866cd50f615c.
This reimplements the criteria __focused__ commit in preparation for
fixing a known bug.
Diffstat (limited to 'sway/tree')
-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 8fc45f52..f872bef6 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -81,6 +81,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); |