add debug trace for WINGs dialog button event routing

This commit is contained in:
Window Maker 2026-06-04 10:27:37 +02:00
parent ef45983b5b
commit 9dcc4f8f72
1 changed files with 6 additions and 0 deletions

View File

@ -236,9 +236,15 @@ handle_pointer_button(struct wl_listener *listener, void *data)
wl_state.pointer_x < _wtb->x + _wtb->width &&
wl_state.pointer_y >= _wtb->y &&
wl_state.pointer_y < _wtb->y + _wtb->height) {
wwarning("btn: wings fb id=0x%lx xy=(%d,%d) wh=(%d,%d) click=(%.0f,%.0f)",
(unsigned long)_wtb->id, _wtb->x, _wtb->y,
_wtb->width, _wtb->height,
wl_state.pointer_x, wl_state.pointer_y);
break;
}
}
if (!_wtb)
wwarning("btn: no wings fb found, using tv id=0x%lx", (unsigned long)_tv->id);
wev.window = _wtb ? _wtb->id : _tv->id;
wev.u.button.window = wev.window;
wev.u.button.x = _wtb ? (wl_state.pointer_x - _wtb->x) : (int)_sx;