From 7ad4f86f2aac75935a52d31383593c1327204729 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Wed, 14 Oct 2026 14:21:13 +0300 Subject: Count touch as a press, report a missing bell, and test X11 INCR - Wayland: a touch contact is a press for move, resize, menu and drag again, and a compositor without xdg-system-bell reports ENOTSUP. - yasl_surface_set_cursor no longer reports a stale errno. - The X11 input test expects the TIMESTAMP and MULTIPLE targets and drives an INCR transfer instead of expecting INCR to be rejected. Co-Authored-By: Claude Opus 5.5 --- tests/common/test_surface_integration.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/common/test_surface_integration.c') diff --git a/tests/common/test_surface_integration.c b/tests/common/test_surface_integration.c index 9067640..887f254 100644 --- a/tests/common/test_surface_integration.c +++ b/tests/common/test_surface_integration.c @@ -265,9 +265,8 @@ int main(int argc, char **argv) int restored = yasl_surface_request(s, YASL_REQUEST_RESTORE); assert(restored == 0 || restored == -ENOTSUP); drain(); - /* ENOTSUP is the documented answer when the compositor lacks xdg-system-bell; Wayland - * currently reports EIO there, so only the 0-or-errno rule is checked. */ - assert(yasl_surface_bell(s) <= 0); + int bell = yasl_surface_bell(s); + assert(bell == 0 || bell == -ENOTSUP); /* Desktop queries and the drag cancel, which is a no-op without a drag. */ assert(yasl_get_appearance() <= 7); -- cgit v1.2.3