On 21/12/2016 15:40, Pekka Paalanen wrote:
From: Pekka Paalanen <[email protected]>

Helps tracking what happens with XWM.

Use the same debugging guard as XWM.

Signed-off-by: Pekka Paalanen <[email protected]>

Seems good:
Reviewed-by: Quentin Glidic <[email protected]>


---
  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



--

Quentin “Sardem FF7” Glidic
_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to