debug: trace Z-order in wmaker_popup_apply; remove noisy debug

This commit is contained in:
Window Maker 2026-05-24 19:23:43 +02:00
parent 01508ef31a
commit 8c8293acc9
4 changed files with 5 additions and 12 deletions

0
1 Normal file
View File

View File

@ -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);

View File

@ -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);
}

View File

@ -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);
}
}