emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 0392190: ; Add commentary to w32inevt.c


From: Eli Zaretskii
Subject: [Emacs-diffs] master 0392190: ; Add commentary to w32inevt.c
Date: Mon, 21 Oct 2019 06:33:23 -0400 (EDT)

branch: master
commit 03921902b2a07909e7f36e6c8fb259eff4bad982
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    ; Add commentary to w32inevt.c
    
    * src/w32inevt.c (do_mouse_event): Comment on mouse
    coordinates in console mouse-wheel events.
---
 src/w32inevt.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/w32inevt.c b/src/w32inevt.c
index 1a901d4..4312e52 100644
--- a/src/w32inevt.c
+++ b/src/w32inevt.c
@@ -534,6 +534,12 @@ do_mouse_event (MOUSE_EVENT_RECORD *event,
     case MOUSE_HWHEELED:
       {
        struct frame *f = get_frame ();
+       /* Mouse positions in console wheel events are reported to
+          ReadConsoleInput relative to the display's top-left
+          corner(!), not relative to the origin of the console screen
+          buffer.  This makes these coordinates unusable; e.g.,
+          scrolling the tab-line in general doesn't work.
+          FIXME (but how?).  */
        int mx = event->dwMousePosition.X, my = event->dwMousePosition.Y;
        bool down_p = (event->dwButtonState & 0x10000000) != 0;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]