diff options
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) { | |||
79 | return 0; | 79 | return 0; |
80 | } | 80 | } |
81 | 81 | ||
82 | const char *view_get_window_role(struct sway_view *view) { | ||
83 | if (view->impl->get_string_prop) { | ||
84 | return view->impl->get_string_prop(view, VIEW_PROP_WINDOW_ROLE); | ||
85 | } | ||
86 | return NULL; | ||
87 | } | ||
88 | |||
82 | uint32_t view_get_window_type(struct sway_view *view) { | 89 | uint32_t view_get_window_type(struct sway_view *view) { |
83 | if (view->impl->get_int_prop) { | 90 | if (view->impl->get_int_prop) { |
84 | return view->impl->get_int_prop(view, VIEW_PROP_WINDOW_TYPE); | 91 | return view->impl->get_int_prop(view, VIEW_PROP_WINDOW_TYPE); |