unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#25842: 25.1; Mouse stops working after using Logitech mouse's minimize button
@ 2017-02-22 22:09 Robert Ross
  2017-02-23  3:41 ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Ross @ 2017-02-22 22:09 UTC (permalink / raw)
  To: 25842

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


Running Emacs in Windows 10 with Logitech MX Anywhere 2 mouse.  I've
changed the function of a mouse button to be "minimize".  After I
minimize (then restore) Emacs, I get no response from mouse clicks: I
can't select text or reposition the cursor.

I can still move the window and access menus with the mouse.  Accessing
menus clears the problem and I can again use the mouse normally.

This doesn't seem to be Major mode specific.  I get nothing in the *Messages*
buffer, and nothing is triggered when I select "Enter Debugger on Error".


In GNU Emacs 25.1.1 (x86_64-w64-mingw32)
of 2016-09-17 built on LAPHROAIG
Windowing system distributor 'Microsoft Corp.', version 10.0.14393
Configured using:
'configure --without-dbus --without-compress-install CFLAGS=-static'

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252

Major mode: VHDL/es

Minor modes in effect:
  vhdl-stutter-mode: t
  vhdl-electric-mode: t
  show-paren-mode: t
  global-linum-mode: t
  linum-mode: t
  diff-auto-refine-mode: t
  delete-selection-mode: t
  global-auto-revert-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
Type C-x 1 to delete the help window.
Mark set [3 times]
Commands: d, s, x, u; f, o, 1, 2, m, v; ~, %; q to quit; ? for help.
Debug on Error enabled globally
Mark set [2 times]
Debug on Quit enabled globally
Mark set
Quit
Mark set
Commands: d, s, x, u; f, o, 1, 2, m, v; ~, %; q to quit; ? for help.
Quit [9 times]

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec
password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils thingatpt help-fns
cl-extra two-column iso-transl help-mode vhdl-mode hippie-exp paren
linum cus-start cus-load p4 edmacro kmacro ps-print ps-def lpr diff-mode
easymenu easy-mmode dired compile comint ansi-color ring delsel
autorevert filenotify cl-loaddefs pcase cl-lib time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese charscript
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote w32notify w32 multi-tty
make-network-process emacs)

Memory information:
((conses 16 150111 28377)
(symbols 56 25208 0)
(miscs 48 681 510)
(strings 32 33223 15106)
(string-bytes 1 879851)
(vectors 16 16540)
(vector-slots 8 480148 3591)
(floats 8 438 394)
(intervals 56 2036 578)
(buffers 976 23))

[-- Attachment #2: Type: text/html, Size: 9273 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#25842: 25.1; Mouse stops working after using Logitech mouse's minimize button
  2017-02-22 22:09 bug#25842: 25.1; Mouse stops working after using Logitech mouse's minimize button Robert Ross
@ 2017-02-23  3:41 ` Eli Zaretskii
  2017-02-23 16:48   ` Robert Ross
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2017-02-23  3:41 UTC (permalink / raw)
  To: Robert Ross; +Cc: 25842

> From: Robert Ross <robert.ross@ni.com>
> Date: Wed, 22 Feb 2017 22:09:40 +0000
> 
> Running Emacs in Windows 10 with Logitech MX Anywhere 2 mouse. I've
> changed the function of a mouse button to be "minimize". After I
> minimize (then restore) Emacs, I get no response from mouse clicks: I
> can't select text or reposition the cursor.

Thanks, but please provide a full reproduction recipe starting from
"emacs -Q" and including the minimal customizations needed to change
the mouse click to perform the "minimize" function.  We need this to
be able to investigate the problem.

Also, are you mentioning that specific Logitech mouse because you can
only reproduce the problem with that particular type?





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#25842: 25.1; Mouse stops working after using Logitech mouse's minimize button
  2017-02-23  3:41 ` Eli Zaretskii
@ 2017-02-23 16:48   ` Robert Ross
  2021-07-06 15:15     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Ross @ 2017-02-23 16:48 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 25842@debbugs.gnu.org

Eli,

This fails the same way when running "runemacs.exe -Q".  No customizations
required for Emacs.

I mentioned the specific mouse I was using, but I've checked two more mice and
believe any Logitech mouse will work (I haven't tested for similar
functionality in other brands).

Older mice are supported by SetPoint, and newer mice are supported by "Logitech
Options".  Either version can be downloaded here:
http://support.logitech.com/en_us/product/wireless-mouse-m510

If using a SetPoint mouse:

Install Logitech SetPoint
Run "Mouse and Keyboard Settings" (SetPoint) to customize buttons.
   Select a button, but not Left or Right
   Select task "other" for the button, scroll down to find "minimize"
   Apply

If using a "Logitech Options" mouse:
Install "Logitech Options"
Run "Logitech Options"
   Click a button that you want to customize.
   Select "Minimize Window" as the action.
   Close the window

For either option:

Launch Emacs.  See that the mouse works normally.  Click the "minimize" mouse
  button to minimize Emacs (just click somewhere in Emacs, not on the little
  corner button)

Restore Emacs.  Note that the mouse buttons no longer work.

Click one of the menus (File, Edit, etc.).  The next click inside Emacs
  doesn't work, but subsequent clicks do.

Thanks for your help.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#25842: 25.1; Mouse stops working after using Logitech mouse's minimize button
  2017-02-23 16:48   ` Robert Ross
@ 2021-07-06 15:15     ` Lars Ingebrigtsen
  2021-07-06 15:24       ` bug#25842: " Robert Ross
  0 siblings, 1 reply; 9+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-06 15:15 UTC (permalink / raw)
  To: Robert Ross; +Cc: 25842@debbugs.gnu.org

Robert Ross <robert.ross@ni.com> writes:

> Launch Emacs.  See that the mouse works normally.  Click the "minimize" mouse
>   button to minimize Emacs (just click somewhere in Emacs, not on the little
>   corner button)
>
> Restore Emacs.  Note that the mouse buttons no longer work.
>
> Click one of the menus (File, Edit, etc.).  The next click inside Emacs
>   doesn't work, but subsequent clicks do.

(I'm going through old bug reports that unfortunately got no response at
the time.)

Are you still seeing this problem in more recent versions of Emacs/Windows?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#25842: Re: bug#25842: 25.1; Mouse stops working after using Logitech mouse's minimize button
  2021-07-06 15:15     ` Lars Ingebrigtsen
@ 2021-07-06 15:24       ` Robert Ross
  2021-07-06 15:56         ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Ross @ 2021-07-06 15:24 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 25842@debbugs.gnu.org

I'm still seeing this on my latest install, 27.1 
	GNU Emacs 27.1 (build 1, x86_64-w64-mingw32)
	 of 2020-08-21

Robert Ross 
Principal Hardware Engineer
Controllers, Chassis, and Interfaces Domain 
+15126838530  |  ni.com

-----Original Message-----
From: Lars Ingebrigtsen <larsi@gnus.org> 
Sent: Tuesday, July 6, 2021 10:15 AM
To: Robert Ross <robert.ross@ni.com>
Cc: Eli Zaretskii <eliz@gnu.org>; 25842@debbugs.gnu.org
Subject: [EXTERNAL] Re: bug#25842: 25.1; Mouse stops working after using Logitech mouse's minimize button

Robert Ross <robert.ross@ni.com> writes:

> Launch Emacs.  See that the mouse works normally.  Click the "minimize" mouse
>   button to minimize Emacs (just click somewhere in Emacs, not on the little
>   corner button)
>
> Restore Emacs.  Note that the mouse buttons no longer work.
>
> Click one of the menus (File, Edit, etc.).  The next click inside Emacs
>   doesn't work, but subsequent clicks do.

(I'm going through old bug reports that unfortunately got no response at the time.)

Are you still seeing this problem in more recent versions of Emacs/Windows?

--
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: https://urldefense.com/v3/__http://lars.ingebrigtsen.no__;!!FbZ0ZwI3Qg!-onqcRV_vZhP2JiFIHBRQOBb8MzHk6NzVR6m72ctJ1NwmmzZX9IRDsDaZlrIZw$ 





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#25842: 25.1; Mouse stops working after using Logitech mouse's minimize button
  2021-07-06 15:24       ` bug#25842: " Robert Ross
@ 2021-07-06 15:56         ` Eli Zaretskii
  2021-07-06 17:36           ` bug#25842: " Robert Ross
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2021-07-06 15:56 UTC (permalink / raw)
  To: Robert Ross; +Cc: 25842, larsi

> From: Robert Ross <robert.ross@ni.com>
> CC: Eli Zaretskii <eliz@gnu.org>,
>         "25842@debbugs.gnu.org"
> 	<25842@debbugs.gnu.org>
> Date: Tue, 6 Jul 2021 15:24:10 +0000
> 
> I'm still seeing this on my latest install, 27.1 
> 	GNU Emacs 27.1 (build 1, x86_64-w64-mingw32)
> 	 of 2020-08-21

This kind of bug needs someone who can reproduce it run Emacs under
GDB and see what kind of events this mouse sends to Emacs.  Or use
some tool (not that I know of any off the top of my head) which will
show the messages Windows sends to Emacs when clicking this mouse
before and after the problem begins.  I don't see how can we make any
progress here otherwise, sorry.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#25842: Re: bug#25842: 25.1; Mouse stops working after using Logitech mouse's minimize button
  2021-07-06 15:56         ` Eli Zaretskii
@ 2021-07-06 17:36           ` Robert Ross
  2021-07-06 18:42             ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Ross @ 2021-07-06 17:36 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 25842@debbugs.gnu.org, larsi@gnus.org

I installed the mingw-w64 version of gdb (8.1). I've been poking around looking around for how to capture mouse events but I'm not seeing anything obvious. Is this an easy thing to capture, or will it take some expertise? 


Robert Ross 
Principal Hardware Engineer
Controllers, Chassis, and Interfaces Domain 
+15126838530  |  ni.com

-----Original Message-----
From: Eli Zaretskii <eliz@gnu.org> 
Sent: Tuesday, July 6, 2021 10:57 AM
To: Robert Ross <robert.ross@ni.com>
Cc: larsi@gnus.org; 25842@debbugs.gnu.org
Subject: [EXTERNAL] Re: bug#25842: 25.1; Mouse stops working after using Logitech mouse's minimize button

> From: Robert Ross <robert.ross@ni.com>
> CC: Eli Zaretskii <eliz@gnu.org>,
>         "25842@debbugs.gnu.org"
> 	<25842@debbugs.gnu.org>
> Date: Tue, 6 Jul 2021 15:24:10 +0000
> 
> I'm still seeing this on my latest install, 27.1 
> 	GNU Emacs 27.1 (build 1, x86_64-w64-mingw32)
> 	 of 2020-08-21

This kind of bug needs someone who can reproduce it run Emacs under GDB and see what kind of events this mouse sends to Emacs.  Or use some tool (not that I know of any off the top of my head) which will show the messages Windows sends to Emacs when clicking this mouse before and after the problem begins.  I don't see how can we make any progress here otherwise, sorry.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#25842: 25.1; Mouse stops working after using Logitech mouse's minimize button
  2021-07-06 17:36           ` bug#25842: " Robert Ross
@ 2021-07-06 18:42             ` Eli Zaretskii
  2021-08-04 11:28               ` Lars Ingebrigtsen
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2021-07-06 18:42 UTC (permalink / raw)
  To: Robert Ross; +Cc: 25842, larsi

> From: Robert Ross <robert.ross@ni.com>
> CC: "larsi@gnus.org" <larsi@gnus.org>,
>         "25842@debbugs.gnu.org"
> 	<25842@debbugs.gnu.org>
> Date: Tue, 6 Jul 2021 17:36:10 +0000
> 
> I installed the mingw-w64 version of gdb (8.1). I've been poking around looking around for how to capture mouse events but I'm not seeing anything obvious. Is this an easy thing to capture, or will it take some expertise? 

Look in w32term.c, where it processes these messages:

	case WM_LBUTTONDOWN:
	case WM_LBUTTONUP:
	case WM_MBUTTONDOWN:
	case WM_MBUTTONUP:
	case WM_RBUTTONDOWN:
	case WM_RBUTTONUP:
	case WM_XBUTTONDOWN:
	case WM_XBUTTONUP:
	case WM_MOUSEMOVE:
	case WM_MOUSEWHEEL:
        case WM_MOUSEHWHEEL:

That's where the processing of mouse events starts in Emacs.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#25842: 25.1; Mouse stops working after using Logitech mouse's minimize button
  2021-07-06 18:42             ` Eli Zaretskii
@ 2021-08-04 11:28               ` Lars Ingebrigtsen
  0 siblings, 0 replies; 9+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-04 11:28 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 25842, Robert Ross

Eli Zaretskii <eliz@gnu.org> writes:

>> I installed the mingw-w64 version of gdb (8.1). I've been poking around looking around for how to capture mouse events but I'm not seeing anything obvious. Is this an easy thing to capture, or will it take some expertise? 
>
> Look in w32term.c, where it processes these messages:
>
> 	case WM_LBUTTONDOWN:
> 	case WM_LBUTTONUP:
> 	case WM_MBUTTONDOWN:
> 	case WM_MBUTTONUP:
> 	case WM_RBUTTONDOWN:
> 	case WM_RBUTTONUP:
> 	case WM_XBUTTONDOWN:
> 	case WM_XBUTTONUP:
> 	case WM_MOUSEMOVE:
> 	case WM_MOUSEWHEEL:
>         case WM_MOUSEHWHEEL:
>
> That's where the processing of mouse events starts in Emacs.

Robert, have you gotten any further debugging this?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-08-04 11:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-22 22:09 bug#25842: 25.1; Mouse stops working after using Logitech mouse's minimize button Robert Ross
2017-02-23  3:41 ` Eli Zaretskii
2017-02-23 16:48   ` Robert Ross
2021-07-06 15:15     ` Lars Ingebrigtsen
2021-07-06 15:24       ` bug#25842: " Robert Ross
2021-07-06 15:56         ` Eli Zaretskii
2021-07-06 17:36           ` bug#25842: " Robert Ross
2021-07-06 18:42             ` Eli Zaretskii
2021-08-04 11:28               ` Lars Ingebrigtsen

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).