[PATCH weston v2 08/24] libweston-desktop/xwayland: debug commits

Pekka Paalanen ppaalanen at gmail.com
Wed Dec 21 14:40:06 UTC 2016


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

Helps tracking what happens with XWM.

Use the same debugging guard as XWM.

Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
 libweston-desktop/xwayland.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libweston-desktop/xwayland.c b/libweston-desktop/xwayland.c
index 449675a..d1566bd 100644
--- a/libweston-desktop/xwayland.c
+++ b/libweston-desktop/xwayland.c
@@ -135,6 +135,10 @@ weston_desktop_xwayland_surface_committed(struct weston_desktop_surface *dsurfac
 
 	assert(dsurface == surface->surface);
 
+#ifdef WM_DEBUG
+	weston_log("%s: xwayland surface %p\n", __func__, surface);
+#endif
+
 	if (surface->has_next_geometry) {
 		oldgeom = weston_desktop_surface_get_geometry(surface->surface);
 		sx -= surface->next_geometry.x - oldgeom.x;
-- 
2.10.2



More information about the wayland-devel mailing list