[PATCH weston v2 07/24] desktop-shell: debug set_position_from_xwayland

Pekka Paalanen ppaalanen at gmail.com
Wed Dec 21 14:40:05 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>
---
 desktop-shell/shell.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index 9b39933..f53a49c 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -2404,6 +2404,12 @@ set_position_from_xwayland(struct shell_surface *shsurf)
 	y = shsurf->xwayland.y - geometry.y;
 
 	weston_view_set_position(shsurf->view, x, y);
+
+#ifdef WM_DEBUG
+	weston_log("%s: XWM %d, %d; geometry %d, %d; view %f, %f\n",
+		   __func__, shsurf->xwayland.x, shsurf->xwayland.y,
+		   geometry.x, geometry.y, x, y);
+#endif
 }
 
 static void
-- 
2.10.2



More information about the wayland-devel mailing list