[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-28 e3d5337: Fix mouse handling with several TTY frames on MS-Windo
From: |
Eli Zaretskii |
Subject: |
emacs-28 e3d5337: Fix mouse handling with several TTY frames on MS-Windows |
Date: |
Sat, 20 Nov 2021 13:08:45 -0500 (EST) |
branch: emacs-28
commit e3d5337970585d1e47a4942048edf8261ad5b781
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
Fix mouse handling with several TTY frames on MS-Windows
* src/w32inevt.c (do_mouse_event): Reset the 'mouse_moved' flag of
the selected frame. Without that, this flag might remain set on a
TTY frame that is not displayed.
---
src/w32inevt.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/w32inevt.c b/src/w32inevt.c
index 9a69b32..894bc3a 100644
--- a/src/w32inevt.c
+++ b/src/w32inevt.c
@@ -470,6 +470,9 @@ do_mouse_event (MOUSE_EVENT_RECORD *event,
DWORD but_change, mask, flags = event->dwEventFlags;
int i;
+ /* Mouse didn't move unless MOUSE_MOVED says it did. */
+ SELECTED_FRAME ()->mouse_moved = 0;
+
switch (flags)
{
case MOUSE_MOVED:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-28 e3d5337: Fix mouse handling with several TTY frames on MS-Windows,
Eli Zaretskii <=