[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#65129: 30.0.50; pinch gestures suddenly stops being recognised
From: |
Po Lu |
Subject: |
bug#65129: 30.0.50; pinch gestures suddenly stops being recognised |
Date: |
Thu, 10 Aug 2023 08:38:38 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Visuwesh <visuweshm@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.