Commit e0e39b66 authored by Pekka Paalanen's avatar Pekka Paalanen

xwm: dump properties of type WINDOW

Very useful for TRANSIENT_FOR property debugging.
Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
Signed-off-by: 's avatarFabien Lahoudere <fabien.lahoudere@collabora.com>
Reviewed-by: 's avatarIan Ray <ian.ray@ge.com>
parent b0a8317b
...@@ -446,6 +446,7 @@ dump_property(struct weston_wm *wm, ...@@ -446,6 +446,7 @@ dump_property(struct weston_wm *wm,
int32_t *incr_value; int32_t *incr_value;
const char *text_value, *name; const char *text_value, *name;
xcb_atom_t *atom_value; xcb_atom_t *atom_value;
xcb_window_t *window_value;
int width, len; int width, len;
uint32_t i; uint32_t i;
...@@ -488,6 +489,9 @@ dump_property(struct weston_wm *wm, ...@@ -488,6 +489,9 @@ dump_property(struct weston_wm *wm,
wm_log_continue("\n"); wm_log_continue("\n");
} else if (reply->type == XCB_ATOM_CARDINAL) { } else if (reply->type == XCB_ATOM_CARDINAL) {
dump_cardinal_array(reply); dump_cardinal_array(reply);
} else if (reply->type == XCB_ATOM_WINDOW && reply->format == 32) {
window_value = xcb_get_property_value(reply);
wm_log_continue("win %u\n", *window_value);
} else { } else {
wm_log_continue("huh?\n"); wm_log_continue("huh?\n");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment