GNU bug report logs - #65129
30.0.50; pinch gestures suddenly stops being recognised

Previous Next

Package: emacs;

Reported by: Visuwesh <visuweshm <at> gmail.com>

Date: Mon, 7 Aug 2023 16:47:02 UTC

Severity: normal

Found in version 30.0.50

Done: Po Lu <luangruo <at> yahoo.com>

Bug is archived. No further changes may be made.

Full log


Message #28 received at 65129-done <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Visuwesh <visuweshm <at> gmail.com>
Cc: 65129-done <at> debbugs.gnu.org
Subject: Re: bug#65129: 30.0.50; pinch gestures suddenly stops being recognised
Date: Thu, 10 Aug 2023 08:38:38 +0800
Visuwesh <visuweshm <at> gmail.com> writes:

> [Wednesday August 09, 2023] Po Lu wrote:
>
>> Does the following patch fix your problem?
>
> Yes, it does.  Thanks!
>
>> diff --git a/src/xmenu.c b/src/xmenu.c
>> index 6d32aa3e078..d4b5b385e11 100644
>> --- a/src/xmenu.c
>> +++ b/src/xmenu.c
>> @@ -1680,6 +1680,19 @@ leave_toolkit_menu (void *data)
>>    XISetMask (m, XI_Enter);
>>    XISetMask (m, XI_Leave);
>>  
>> +#ifdef HAVE_XINPUT2_4
>> +  /* Select for gesture events.  Emacs selects for gesture events from
>> +     all master devices on non-GTK3 builds, so that event mask is also
>> +     clobbered by prepare_for_entry_into_toolkit_menu.  (bug#65129) */
>> +
>> +  if (dpyinfo->xi2_version >= 4)
>> +    {
>> +      XISetMask (m, XI_GesturePinchBegin);
>> +      XISetMask (m, XI_GesturePinchUpdate);
>> +      XISetMask (m, XI_GesturePinchEnd);
>> +    }
>> +#endif /* HAVE_XINPUT2_4 */
>> +
>>    FOR_EACH_FRAME (tail, frame)
>>      {
>>        f = XFRAME (frame);

I'll install this shortly, and am closing this bug.




This bug report was last modified 1 year and 284 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.