libweston-desktop/xwayland: debug commits
Helps tracking what happens with XWM.
Use the same debugging guard as XWM.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
diff --git a/libweston-desktop/xwayland.c b/libweston-desktop/xwayland.c
index 6b90c14..663734a 100644
--- a/libweston-desktop/xwayland.c
+++ b/libweston-desktop/xwayland.c
@@ -132,6 +132,10 @@
{
struct weston_desktop_xwayland_surface *surface = user_data;
+#ifdef WM_DEBUG
+ weston_log("%s: xwayland surface %p\n", __func__, surface);
+#endif
+
if (surface->has_next_geometry) {
surface->has_next_geometry = false;
weston_desktop_surface_set_geometry(surface->surface,