[PATCH weston 2/6] XWM: debug position and size on map request

Pekka Paalanen ppaalanen at gmail.com
Thu Nov 24 11:40:46 UTC 2016


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

Helps debugging initial placement problems.

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

diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c
index 4a799e3..56d65af 100644
--- a/xwayland/window-manager.c
+++ b/xwayland/window-manager.c
@@ -966,8 +966,9 @@ weston_wm_handle_map_request(struct weston_wm *wm, xcb_generic_event_t *event)
 	if (window->frame_id == XCB_WINDOW_NONE)
 		weston_wm_window_create_frame(window);
 
-	wm_log("XCB_MAP_REQUEST (window %d, %p, frame %d)\n",
-	       window->id, window, window->frame_id);
+	wm_log("XCB_MAP_REQUEST (window %d, %p, frame %d, %dx%d @ %d,%d)\n",
+	       window->id, window, window->frame_id,
+	       window->width, window->height, window->x, window->y);
 
 	weston_wm_window_set_wm_state(window, ICCCM_NORMAL_STATE);
 	weston_wm_window_set_net_wm_state(window);
-- 
2.7.3



More information about the wayland-devel mailing list