[PATCH weston v2 21/24] xwm: debug when weston_surface gets created

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


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

This comes via Wayland, WL_SURFACE_ID comes via X11. They race. Nice to
get both printed.

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

diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c
index cf616ec..89b879d 100644
--- a/xwayland/window-manager.c
+++ b/xwayland/window-manager.c
@@ -787,6 +787,8 @@ weston_wm_create_surface(struct wl_listener *listener, void *data)
 	if (wl_resource_get_client(surface->resource) != wm->server->client)
 		return;
 
+	wm_log("XWM: create weston_surface %p\n", surface);
+
 	wl_list_for_each(window, &wm->unpaired_window_list, link)
 		if (window->surface_id ==
 		    wl_resource_get_id(surface->resource)) {
@@ -2685,8 +2687,8 @@ xserver_map_shell_surface(struct weston_wm_window *window,
 						   window->surface,
 						   &shell_client);
 
-	wm_log("XWM: map shell surface, win %d, xwayland surface %p\n",
-	       window->id, window->shsurf);
+	wm_log("XWM: map shell surface, win %d, weston_surface %p, xwayland surface %p\n",
+	       window->id, window->surface, window->shsurf);
 
 	if (window->name)
 		xwayland_interface->set_title(window->shsurf, window->name);
-- 
2.10.2



More information about the wayland-devel mailing list