Tk Source Code

Check-in [2535a940]
Login

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

Overview
Comment:Fix [1954237]: double click is lost if processing a click takes too long. Fix [2148529]: canvas scrolls when the scrollbar indicates that it cannot
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | trunk | main
Files: files | file ages | folders
SHA3-256: 2535a940feb929dd3dbec93ee84af282e56437031ecb4809fd88c344abf57a66
User & Date: jan.nijtmans 2026-09-25 09:50:28.516
Original Comment: Fix [1954237]: double click is lost if processing a click takes too long. Fix [1954833]: busy canvas after a cursor change.
References
2026-09-25
10:31 • Closed ticket [2148529f]: Canvas scrolls when scrollbar indicates that it cannot. plus 9 other changes artifact: d1609c50 user: jan.nijtmans
10:30 • Closed ticket [1954237f]: Doubleclick lost if processing click/release slow plus 9 other changes artifact: d9fe879a user: jan.nijtmans
Context
2026-09-25
10:44
Fix [0ec9336873bc987c] followup: Make --disable-bidi compile/work again. check-in: 808a0c7a user: jan.nijtmans tags: trunk, main
10:28
Fix [1954237]: double click is lost if processing a click takes too long. Fix [2148529]: canvas scrolls when the scrollbar indicates that it cannot check-in: 3a1b43c4 user: jan.nijtmans tags: core-9-0-branch
09:50
Fix [1954237]: double click is lost if processing a click takes too long. Fix [2148529]: canvas scrolls when the scrollbar indicates that it cannot check-in: 2535a940 user: jan.nijtmans tags: trunk, main
06:59
Fix [7ca431c997]: MS-Win: tk_getOpenFile and tk_getSaveFile leak memory when -initialfile is given more than once check-in: ec1a14ce user: jan.nijtmans tags: trunk, main
2026-09-22
13:06
Fix [1954237]: double click is lost if processing a click takes too long

On Windows the time of a mouse or key event was the time at which the message was processed, not the time at which it was posted, so if a binding script ran longer than the double click time, the events of the second click got too late times and no <Double-1> event was generated. A new TkpGetEventTime() returns GetMessageTime() on Windows and the current time on macOS. closed check-in: 6498c685 user: serhiy.storchaka tags: win-event-time

Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tkCanvas.c.
Changes to generic/tkInt.h.
Changes to generic/tkPointer.c.
Changes to macosx/tkMacOSXWm.c.
Changes to tests/canvas.test.
Changes to win/tkWinX.c.