xwm: dump properties of type WINDOW
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 4 May 2018 10:53:55 +0000 (12:53 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 24 May 2018 14:20:04 +0000 (17:20 +0300)
Very useful for TRANSIENT_FOR property debugging.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.com>
Reviewed-by: Ian Ray <ian.ray@ge.com>
xwayland/window-manager.c

index 061ce1741d2efb2a42f80d2802c7cac22411974c..2b3defb70ea267ace052a136cd74f2629c611e7b 100644 (file)
@@ -446,6 +446,7 @@ dump_property(struct weston_wm *wm,
        int32_t *incr_value;
        const char *text_value, *name;
        xcb_atom_t *atom_value;
+       xcb_window_t *window_value;
        int width, len;
        uint32_t i;
 
@@ -488,6 +489,9 @@ dump_property(struct weston_wm *wm,
                wm_log_continue("\n");
        } else if (reply->type == XCB_ATOM_CARDINAL) {
                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 {
                wm_log_continue("huh?\n");
        }