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