summaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-12-20 16:15:02 +0200
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2017-01-18 13:53:48 +0200
commit9a5fab022899a76ae9eeefdad69d8807e27538cd (patch)
tree2d0afe524da1b94049b54db5cdda0dd5a8052272 /xwayland
parented56883970b89ffb11756d22be26d206f7e4a780 (diff)
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 <pekka.paalanen@collabora.co.uk> Reviewed-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/window-manager.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c
index a2ce7821..d9d1bae9 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)) {
@@ -2681,8 +2683,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);