summaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index b23afb97..3698d7d5 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -116,6 +116,13 @@ uint32_t view_get_x11_window_id(struct sway_view *view) {
116 } 116 }
117 return 0; 117 return 0;
118} 118}
119
120uint32_t view_get_x11_parent_id(struct sway_view *view) {
121 if (view->impl->get_int_prop) {
122 return view->impl->get_int_prop(view, VIEW_PROP_X11_PARENT_ID);
123 }
124 return 0;
125}
119#endif 126#endif
120const char *view_get_window_role(struct sway_view *view) { 127const char *view_get_window_role(struct sway_view *view) {
121 if (view->impl->get_string_prop) { 128 if (view->impl->get_string_prop) {