Tk Source Code

Check-in [36a85716]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [3f1ad1ff50]: Windows: pointer warp could land one pixel short of the requested position
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | trunk | main
Files: files | file ages | folders
SHA3-256: 36a857169e07aadcbc8305f354875a4a54c2b0842522346c6c070f3f40a00bcd
User & Date: jan.nijtmans 2026-10-19 09:14:57.209
References
2026-10-19
09:49 • Closed ticket [3f1ad1ff]: Windows: pointer warp sometimes lands one pixel short plus 8 other changes artifact: ef893bcb user: jan.nijtmans
Context
2026-10-19
16:29
[564897] MS-Win: activation if embedded application within tk window. Only test. Fix was merged with checkin [e03750c8] (ticket [1474465]) check-in: 4c445a31 user: oehhar tags: trunk, main
09:37
Fix [3f1ad1ff50]: Windows: pointer warp could land one pixel short of the requested position. Don't bother reserving a stub entry for TkpChangeFocus2 check-in: 5ded3328 user: jan.nijtmans tags: core-9-0-branch
09:14
Fix [3f1ad1ff50]: Windows: pointer warp could land one pixel short of the requested position check-in: 36a85716 user: jan.nijtmans tags: trunk, main
2026-10-18
14:37
Fix [de6ef8276c]: photo -gamma and -palette had no effect on macOS. check-in: dee06853 user: serhiy.storchaka tags: trunk, main
2026-10-02
13:17
Fix [3f1ad1ff50]: Windows: pointer warp could land one pixel short of the requested position.

TkSetCursorPos() converted the position to the normalized coordinates of SendInput() with rounding to nearest, but Windows converts them back with rounding down, so some positions mapped to the previous pixel (e.g. x = 20 on a 3840 pixels wide screen; test bind-34.2 failed). Round up instead, so that the pointer lands on the requested pixel for any screen width. closed check-in: 4d5305ce user: serhiy.storchaka tags: win-warp-rounding

Changes
Unified Diff Side-by-Side Diff Patch
Changes to changes.md.
Changes to win/tkWinPointer.c.