From 90954812496770f4903a024cb610404a8dd882ad Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 29 Apr 2026 05:59:12 +0000 Subject: [PATCH] Xi: add missing gesture grab type checks in ProcXIPassiveUngrabDevice ProcXIPassiveUngrabDevice was missing XIGrabtypeGesturePinchBegin and XIGrabtypeGestureSwipeBegin from its detail!=0 rejection check. The corresponding ProcXIPassiveGrabDevice function correctly includes these gesture types. Assisted-by: Claude:claude-claude-opus-4-6 Part-of: --- Xi/xipassivegrab.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Xi/xipassivegrab.c b/Xi/xipassivegrab.c index a75559e8e..65b7b805a 100644 --- a/Xi/xipassivegrab.c +++ b/Xi/xipassivegrab.c @@ -333,7 +333,9 @@ ProcXIPassiveUngrabDevice(ClientPtr client) if ((stuff->grab_type == XIGrabtypeEnter || stuff->grab_type == XIGrabtypeFocusIn || - stuff->grab_type == XIGrabtypeTouchBegin) && stuff->detail != 0) { + stuff->grab_type == XIGrabtypeTouchBegin || + stuff->grab_type == XIGrabtypeGesturePinchBegin || + stuff->grab_type == XIGrabtypeGestureSwipeBegin) && stuff->detail != 0) { client->errorValue = stuff->detail; return BadValue; }