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/desktop/xwayland.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/desktop/xwayland.c')
-rw-r--r-- | sway/desktop/xwayland.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 5305ce12..d1aec084 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -171,6 +171,11 @@ static uint32_t get_int_prop(struct sway_view *view, enum sway_view_prop prop) { | |||
171 | switch (prop) { | 171 | switch (prop) { |
172 | case VIEW_PROP_X11_WINDOW_ID: | 172 | case VIEW_PROP_X11_WINDOW_ID: |
173 | return view->wlr_xwayland_surface->window_id; | 173 | return view->wlr_xwayland_surface->window_id; |
174 | case VIEW_PROP_X11_PARENT_ID: | ||
175 | if (view->wlr_xwayland_surface->parent) { | ||
176 | return view->wlr_xwayland_surface->parent->window_id; | ||
177 | } | ||
178 | return 0; | ||
174 | case VIEW_PROP_WINDOW_TYPE: | 179 | case VIEW_PROP_WINDOW_TYPE: |
175 | return *view->wlr_xwayland_surface->window_type; | 180 | return *view->wlr_xwayland_surface->window_type; |
176 | default: | 181 | default: |