From e1246a80c31bed9347981a110a9b4460f36c8631 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 3 Dec 2019 16:23:45 +0200 Subject: [PATCH] xwm: debug _XWAYLAND_ALLOW_COMMITS Print the changes to the debug scope, helping to figure out why Xwayland is or is not committing. Signed-off-by: Pekka Paalanen --- xwayland/window-manager.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c index 3643a4be..8da5fde0 100644 --- a/xwayland/window-manager.c +++ b/xwayland/window-manager.c @@ -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,