From 8c8293acc9b269211c01317bd296838aa4d3d608 Mon Sep 17 00:00:00 2001 From: Window Maker Date: Sun, 24 May 2026 19:23:43 +0200 Subject: [PATCH] debug: trace Z-order in wmaker_popup_apply; remove noisy debug --- 1 | 0 WINGs/wclient_wl.c | 10 +--------- WINGs/wpopupbutton.c | 3 --- src/backend/wayland/wl_backend.c | 4 ++++ 4 files changed, 5 insertions(+), 12 deletions(-) create mode 100644 1 diff --git a/1 b/1 new file mode 100644 index 0000000..e69de29 diff --git a/WINGs/wclient_wl.c b/WINGs/wclient_wl.c index 59b99f2..565a63c 100644 --- a/WINGs/wclient_wl.c +++ b/WINGs/wclient_wl.c @@ -397,16 +397,8 @@ static const struct xdg_toplevel_listener xdg_toplevel_listener = { static void wl_client_toplevel_commit_locked(WLClientToplevel *top) { - if (!top || !top->configured || !top->buf || !top->buf->wl_buf) { - wwarning("commit_locked: SKIP top=%p configured=%d buf=%p wl_buf=%p", - (void*)top, top ? top->configured : -1, - top ? (void*)top->buf : NULL, - (top && top->buf) ? (void*)top->buf->wl_buf : NULL); + if (!top || !top->configured || !top->buf || !top->buf->wl_buf) return; - } - wwarning("commit_locked: COMMIT top=%p surface=%p buf=%p (%dx%d)", - (void*)top, (void*)top->surface, (void*)top->buf, - top->buf->width, top->buf->height); wl_surface_attach(top->surface, top->buf->wl_buf, 0, 0); wl_surface_damage_buffer(top->surface, 0, 0, top->buf->width, top->buf->height); diff --git a/WINGs/wpopupbutton.c b/WINGs/wpopupbutton.c index 73bb4c2..4899230 100644 --- a/WINGs/wpopupbutton.c +++ b/WINGs/wpopupbutton.c @@ -573,9 +573,6 @@ static void handleActionEvents(WMEvent * event, void *data) * everything ourselves. */ int n = WMGetArrayItemCount(bPtr->items); int i; - wwarning("popup expose: bPtr=%p menuView=%p items=%d highlight=%d mapped=%d", - (void*)bPtr, (void*)bPtr->menuView, n, bPtr->highlightedItem, - bPtr->menuView ? bPtr->menuView->flags.mapped : -1); for (i = 0; i < n; i++) { paintMenuEntry(bPtr, i, i == bPtr->highlightedItem); } diff --git a/src/backend/wayland/wl_backend.c b/src/backend/wayland/wl_backend.c index a4ebc41..854e838 100644 --- a/src/backend/wayland/wl_backend.c +++ b/src/backend/wayland/wl_backend.c @@ -1474,6 +1474,8 @@ wmaker_popup_apply(struct wl_toplevel_view *view) wlr_scene_node_set_position(&fb->tree->node, fb->x, fb->y); /* Raise above siblings so popups appear over their parent */ wlr_scene_node_raise_to_top(&fb->tree->node); + wwarning("popup_apply: raised frame tree id=0x%lx to top, parent=%p", + (unsigned long)view->id, (void*)fb->tree->node.parent); } else if (fb->scene_buf) { wlr_scene_node_set_position(&fb->scene_buf->node, fb->x, fb->y); wlr_scene_node_raise_to_top(&fb->scene_buf->node); @@ -1485,6 +1487,8 @@ wmaker_popup_apply(struct wl_toplevel_view *view) wlr_scene_node_set_position(&view->scene_node->node, view->x, view->y); wlr_scene_node_raise_to_top(&view->scene_node->node); + wwarning("popup_apply: raised scene_node id=0x%lx to top", + (unsigned long)view->id); } }