From: Stephen Berman <stephen.berman@gmx.net>
To: Po Lu <luangruo@yahoo.com>
Cc: 57476@debbugs.gnu.org
Subject: bug#57476: 29.0.50; Mouse wheel event ignored on Lucid build
Date: Tue, 30 Aug 2022 12:41:07 +0200 [thread overview]
Message-ID: <878rn6vwsc.fsf@gmx.net> (raw)
In-Reply-To: <8735deox4u.fsf@yahoo.com> (Po Lu's message of "Tue, 30 Aug 2022 18:15:29 +0800")
On Tue, 30 Aug 2022 18:15:29 +0800 Po Lu <luangruo@yahoo.com> wrote:
> Stephen Berman <stephen.berman@gmx.net> writes:
>
>> 1.79769e+308
>
> Please instrument this piece of xterm.c, around line 20724, as follows:
>
> xi_reset_scroll_valuators_for_device_id (dpyinfo, enter->deviceid,
> true);
> #endif
> printf ("Enter %d %d\n", enter->mode, enter->detail); <===
>
> {
> #ifdef HAVE_XWIDGETS
> struct xwidget_view *xwidget_view = xwidget_view_from_window (enter->event);
>
> and this piece of the same function, around line 20843, as follows:
>
> if (device)
> xi_report_motion_window_clear (device);
> printf ("Leave %d %d\n", leave->mode, leave_detail); <====
^^^^^^^^^^^^
This failed to build; I assume you meant leave->detail, which did build.
> and see what is printed as you move the mouse wheel.
The shell output looks like this:
Enter 0 3
Leave 1 0
Enter 2 0
Leave 1 0
Enter 2 0
Leave 1 0
Enter 2 0
Leave 1 0
... (and so on)
> Should it print "Enter" and "Leave" repetitively, please try the
> following patch:
>
> diff --git a/src/xfns.c b/src/xfns.c
> index 0b1f707e9f..bebac747fb 100644
> --- a/src/xfns.c
> +++ b/src/xfns.c
> @@ -3996,6 +3996,9 @@ x_window (struct frame *f, long window_prompting)
> /* Make all the standard events reach the Emacs frame. */
> attributes.event_mask = STANDARD_EVENT_SET;
>
> + if (FRAME_DISPLAY_INFO (f)->supports_xi2)
> + attributes.event_mask &= ~(ButtonPressMask | ButtonReleaseMask);
> +
> #ifdef HAVE_X_I18N
> if (FRAME_XIC (f))
> {
>
> Thanks in advance.
>
> P.S. I can't see anything wrong with that patch at first glance;
> however, it is a big change to very old code, so please report any
> issues that show up with it applied.
After applying the patch and rebuilding, scrolling the mouse wheel is
still a no-op.
Steve Berman
next prev parent reply other threads:[~2022-08-30 10:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-29 11:51 bug#57476: 29.0.50; Mouse wheel event ignored on Lucid build Stephen Berman
2022-08-30 1:25 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-30 1:29 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-30 8:20 ` Stephen Berman
2022-08-30 10:15 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-30 10:41 ` Stephen Berman [this message]
2022-08-30 12:48 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-30 12:58 ` Stephen Berman
2022-08-30 13:44 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-30 15:15 ` Stephen Berman
2022-08-31 2:19 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-31 18:17 ` Stephen Berman
2022-09-01 13:21 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-01 22:41 ` Stephen Berman
2022-09-02 1:08 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-03 11:25 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878rn6vwsc.fsf@gmx.net \
--to=stephen.berman@gmx.net \
--cc=57476@debbugs.gnu.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.