From: Eli Zaretskii Date: Sat, 20 Nov 2021 18:08:06 +0000 (+0200) Subject: Fix mouse handling with several TTY frames on MS-Windows X-Git-Tag: emacs-28.0.90~50 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e3d5337970585d1e47a4942048edf8261ad5b781;p=emacs.git 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. --- diff --git a/src/w32inevt.c b/src/w32inevt.c index 9a69b32bcb0..894bc3ab089 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: