xwm: debug _XWAYLAND_ALLOW_COMMITS
authorPekka Paalanen <pekka.paalanen@collabora.com>
Tue, 3 Dec 2019 14:23:45 +0000 (16:23 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.com>
Thu, 12 Dec 2019 11:15:52 +0000 (13:15 +0200)
Print the changes to the debug scope, helping to figure out why Xwayland is or
is not committing.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
xwayland/window-manager.c

index 3643a4beec8146caef03e9cc0365209738fb0e51..8da5fde0cfa43b169d126b350c62fce2ea8bd877 100644 (file)
@@ -952,6 +952,9 @@ weston_wm_window_set_allow_commits(struct weston_wm_window *window, bool allow)
 
        assert(window->frame_id != XCB_WINDOW_NONE);
 
+       wm_printf(wm, "XWM: window %d set _XWAYLAND_ALLOW_COMMITS = %s\n",
+                 window->id, allow ? "true" : "false");
+
        property[0] = allow ? 1 : 0;
 
        xcb_change_property(wm->conn,