Tk Source Code

Check-in [8d61ec7f]
Login

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

Overview
Comment:Rebase to main
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | win-popup-phantom-events
Files: files | file ages | folders
SHA3-256: 8d61ec7f00a62c634652ca6976995931274180a8509cbbb95c09d70e35990486
User & Date: serhiy.storchaka 2026-10-15 16:42:58.231
Context
2026-10-20
17:38
Fix for [869305ffff]: phantom events with tk_popup check-in: 0800b18c user: csaba tags: trunk, main
2026-10-15
16:42
Rebase to main closed check-in: 8d61ec7f user: serhiy.storchaka tags: win-popup-phantom-events
16:21
Fix [451cb358d9]: LastKnownRequestProcessed() assigned to unsigned int check-in: e0fcdf0c user: jan.nijtmans tags: trunk, main
2026-09-21
19:47
Fix [869305]: phantom events with tk_popup

On Windows, while a popup menu was tracked, the mouse messages which Windows keeps dispatching generated Motion events for the window under the pointer, and after the menu was dismissed Tk generated a ButtonRelease for the window which posted it, since the menu consumed the real one. Ignore pointer events while the menu is tracked and forget the button without an event afterwards, as with a grab on X11. check-in: b8e2b73f user: serhiy.storchaka tags: win-popup-phantom-events

Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tkInt.h.
Changes to generic/tkPointer.c.
Changes to win/tkWinInt.h.
Changes to win/tkWinMenu.c.
Changes to win/tkWinPointer.c.