unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: Po Lu <luangruo@yahoo.com>
Cc: 57020@debbugs.gnu.org
Subject: bug#57020: 29.0.50; Mouse wheel stops working
Date: Tue, 09 Aug 2022 02:13:17 +0200	[thread overview]
Message-ID: <878rnye0ki.fsf@web.de> (raw)
In-Reply-To: <87iln3sbq0.fsf@yahoo.com> (Po Lu's message of "Mon, 08 Aug 2022 10:36:23 +0800")

[-- Attachment #1: Type: text/plain, Size: 157 bytes --]

Po Lu <luangruo@yahoo.com> writes:


> Hmm, thanks.  Could you also add the following instrumentation to that
> code, like such: [...]

You mean like this?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Instrument-xterm.c.patch --]
[-- Type: text/x-diff, Size: 480 bytes --]

diff --git a/src/xterm.c b/src/xterm.c
index 36797bc0ab..88cd566cd3 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -20465,7 +20465,10 @@ handle_one_xevent (struct x_display_info *dpyinfo,
 	      device = xi_device_from_id (dpyinfo, xev->deviceid);

 	      if (!device)
-		goto XI_OTHER;
+		{
+		  fprintf (stderr, "device not found, %d\n", xev->deviceid);
+		  goto XI_OTHER;
+		}

 #ifdef HAVE_XINPUT2_2
 	      if (xev->flags & XIPointerEmulated)
--
2.30.2


[-- Attachment #3: Type: text/plain, Size: 1127 bytes --]


No, I got no output after the mouse wheel had stopped working.

But I have a new data point: there seems to be a relation with switching
to the X session of a different user.  I sometimes have several X
sessions running a the same time.  Some minutes ago the wheel had
stopped working.  I switched to the X session at C-M-f2 and then back to
here (i.e. C-M-f1) and the mouse wheel started to work again.

I'm not saying that there is a connection between the failure and other
X sessions, however.  AFAIR, when the mouse wheel stopped working
yesterday there was only one X session running.  Maybe closing the
laptop (suspend to RAM) sometimes triggers this, but that's just
guessing.  That switching X sessions healed the issue didn't seem
incidental, however.  I had the feeling that I should try that, and I
had been using the mouse wheel as first action after switching the X
session back.

But I had been playing stuntrally with the joystick before I noticed the
mouse wheel stopped working.  Maybe plugging in the Joystick is related
again....dunno if that guessing helps you, if not, I'm sorry for the
noise.

Michael.

  reply	other threads:[~2022-08-09  0:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-06 22:53 bug#57020: 29.0.50; Mouse wheel stops working Michael Heerdegen
2022-08-07  1:56 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-07  2:07   ` Michael Heerdegen
2022-08-07  2:47     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-08  1:58       ` Michael Heerdegen
2022-08-08  2:36         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-09  0:13           ` Michael Heerdegen [this message]
2022-08-09  0:24             ` Michael Heerdegen
2022-08-09  0:48               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-09  3:07                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-09  3:48                   ` Michael Heerdegen
2022-08-09  5:11                     ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878rnye0ki.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=57020@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).