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


View this message in rfc822 format

From: Visuwesh <visuweshm <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 65129 <at> debbugs.gnu.org
Subject: bug#65129: 30.0.50; pinch gestures suddenly stops being recognised
Date: Wed, 09 Aug 2023 19:13:34 +0530
[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);




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.