diff options
author | Franklin "Snaipe" Mathieu <snaipe@diacritic.io> | 2018-10-22 20:17:27 +0100 |
---|---|---|
committer | Franklin "Snaipe" Mathieu <snaipe@diacritic.io> | 2018-10-23 19:10:50 +0100 |
commit | 8fc932833499552bdc8f776b8f5ba9551ae45423 (patch) | |
tree | 0fc94558441eaf6d1789801331e6280315a523f3 /include | |
parent | Merge pull request #2909 from makepanic/issues/2906 (diff) | |
download | sway-8fc932833499552bdc8f776b8f5ba9551ae45423.tar.gz sway-8fc932833499552bdc8f776b8f5ba9551ae45423.tar.zst sway-8fc932833499552bdc8f776b8f5ba9551ae45423.zip |
xwayland: populate window_properties in json for views
window_properties is documented to contain a subset of the X11 properties
of a window (its title, class, instance, role, and transient ID). This
commit adds the missing json object from the get_tree output for
xwayland windows only.
This is a follow-up of #2911.
Signed-off-by: Franklin "Snaipe" Mathieu <me@snai.pe>
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/tree/view.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index dc1f0b02..a8fa1660 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h | |||
@@ -30,6 +30,7 @@ enum sway_view_prop { | |||
30 | VIEW_PROP_WINDOW_ROLE, | 30 | VIEW_PROP_WINDOW_ROLE, |
31 | #ifdef HAVE_XWAYLAND | 31 | #ifdef HAVE_XWAYLAND |
32 | VIEW_PROP_X11_WINDOW_ID, | 32 | VIEW_PROP_X11_WINDOW_ID, |
33 | VIEW_PROP_X11_PARENT_ID, | ||
33 | #endif | 34 | #endif |
34 | }; | 35 | }; |
35 | 36 | ||
@@ -257,6 +258,8 @@ const char *view_get_instance(struct sway_view *view); | |||
257 | 258 | ||
258 | uint32_t view_get_x11_window_id(struct sway_view *view); | 259 | uint32_t view_get_x11_window_id(struct sway_view *view); |
259 | 260 | ||
261 | uint32_t view_get_x11_parent_id(struct sway_view *view); | ||
262 | |||
260 | const char *view_get_window_role(struct sway_view *view); | 263 | const char *view_get_window_role(struct sway_view *view); |
261 | 264 | ||
262 | uint32_t view_get_window_type(struct sway_view *view); | 265 | uint32_t view_get_window_type(struct sway_view *view); |