Commit 9a5fab02 authored by Pekka Paalanen's avatar Pekka Paalanen

xwm: debug when weston_surface gets created

This comes via Wayland, WL_SURFACE_ID comes via X11. They race. Nice to
get both printed.
Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <>
Reviewed-by: Daniel Stone's avatarDaniel Stone <>
parent ed568839
......@@ -787,6 +787,8 @@ weston_wm_create_surface(struct wl_listener *listener, void *data)
if (wl_resource_get_client(surface->resource) != wm->server->client)
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)) {
......@@ -2681,8 +2683,8 @@ xserver_map_shell_surface(struct weston_wm_window *window,
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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment