diff options
| author | Eli Zaretskii | 2019-10-21 13:32:40 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-10-21 13:32:40 +0300 |
| commit | 03921902b2a07909e7f36e6c8fb259eff4bad982 (patch) | |
| tree | 14558700fe76b05f75f41e93767d6c53be8c364f /src | |
| parent | a5ca89d35c9762b1ff850235e0df5fdb4e77079d (diff) | |
| download | emacs-03921902b2a07909e7f36e6c8fb259eff4bad982.tar.gz emacs-03921902b2a07909e7f36e6c8fb259eff4bad982.zip | |
; Add commentary to w32inevt.c
* src/w32inevt.c (do_mouse_event): Comment on mouse
coordinates in console mouse-wheel events.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32inevt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/w32inevt.c b/src/w32inevt.c index 1a901d4e0aa..4312e52b6b4 100644 --- a/src/w32inevt.c +++ b/src/w32inevt.c | |||
| @@ -534,6 +534,12 @@ do_mouse_event (MOUSE_EVENT_RECORD *event, | |||
| 534 | case MOUSE_HWHEELED: | 534 | case MOUSE_HWHEELED: |
| 535 | { | 535 | { |
| 536 | struct frame *f = get_frame (); | 536 | struct frame *f = get_frame (); |
| 537 | /* Mouse positions in console wheel events are reported to | ||
| 538 | ReadConsoleInput relative to the display's top-left | ||
| 539 | corner(!), not relative to the origin of the console screen | ||
| 540 | buffer. This makes these coordinates unusable; e.g., | ||
| 541 | scrolling the tab-line in general doesn't work. | ||
| 542 | FIXME (but how?). */ | ||
| 537 | int mx = event->dwMousePosition.X, my = event->dwMousePosition.Y; | 543 | int mx = event->dwMousePosition.X, my = event->dwMousePosition.Y; |
| 538 | bool down_p = (event->dwButtonState & 0x10000000) != 0; | 544 | bool down_p = (event->dwButtonState & 0x10000000) != 0; |
| 539 | 545 | ||