diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-10-24 01:13:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-24 01:13:15 +0200 |
commit | bdb176863c3c45caae70abb909f9eca9f611e78f (patch) | |
tree | 445c864ab22049d328dd5928a8ca3f91af325968 /sway/tree/view.c | |
parent | Merge pull request #2942 from ianyfan/swaybar (diff) | |
parent | xwayland: populate window_properties in json for views (diff) | |
download | sway-bdb176863c3c45caae70abb909f9eca9f611e78f.tar.gz sway-bdb176863c3c45caae70abb909f9eca9f611e78f.tar.zst sway-bdb176863c3c45caae70abb909f9eca9f611e78f.zip |
Merge pull request #2933 from Snaipe/xwayland-window-properties
xwayland: populate window_properties in json for views
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 a8486dd7..20babf7b 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 | |||
120 | uint32_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 |
120 | const char *view_get_window_role(struct sway_view *view) { | 127 | const char *view_get_window_role(struct sway_view *view) { |
121 | if (view->impl->get_string_prop) { | 128 | if (view->impl->get_string_prop) { |