1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-29 09:43:56 -07:00

; Add commentary to w32inevt.c

* src/w32inevt.c (do_mouse_event): Comment on mouse
coordinates in console mouse-wheel events.
This commit is contained in:
Eli Zaretskii 2019-10-21 13:32:40 +03:00
parent a5ca89d35c
commit 03921902b2

View file

@ -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;