Tk Source Code

Check-in [b3616e16]
Login

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

Overview
Comment:Fix for [1391053fff]: Win32 nonclient double-click causes spurious Button-1 in app
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | trunk | main
Files: files | file ages | folders
SHA3-256: b3616e162feef397050e126d3abacee952b48df93cb1199ca622a66b0a270052
User & Date: csaba 2026-10-26 14:45:39.804
References
2026-10-26
20:09 • Closed ticket [1391053f]: Win32 nonclient double-click causes spurious Button-1 in app plus 10 other changes artifact: a6b3e93d user: nemethi
Context
2026-10-26
19:08
Fix for [1391053fff]: Win32 nonclient double-click causes spurious Button-1 in app check-in: dda7e89d user: csaba tags: core-9-0-branch
17:46
Fix [c70fe74bc4]: on Aqua, Tk_SetMainMenubar installed the menu of any window, so -menu on a withdrawn toplevel replaced the menubar of the key window, and destroying a toplevel with -menu showed the default menubar. Only the key window, or the one that becomes key when it is destroyed, now sets the menubar, which is installed as soon as a window becomes key. Tests menu-48.1 to 48.3. check-in: c546e073 user: nab tags: nab-aqua-menubar-owner
17:41
Fix spacing issue in mixed emoji text check-in: bacdb2d6 user: kevin_walzer tags: trunk, main
14:45
Fix for [1391053fff]: Win32 nonclient double-click causes spurious Button-1 in app check-in: b3616e16 user: csaba tags: trunk, main
14:19
Improvements in complex bidi shaping check-in: 2ebdaa01 user: kevin_walzer tags: trunk, main
2026-09-28
19:32
Fix [1391053]: Win32 nonclient double-click causes spurious Button-1 in app

A button pressed in the non-client area of a toplevel can still be down after the default processing, if a double-click on the title bar or the system menu icon maximized or closed the window. It was reported as a press in the Tk window which is now under the pointer. Ignore such buttons until they are released. closed check-in: 3f837827 user: serhiy.storchaka tags: win-nonclient-buttons

Changes
Unified Diff Side-by-Side Diff Patch
Changes to changes.md.
Changes to win/tkWinInt.h.
Changes to win/tkWinPointer.c.
Changes to win/tkWinWm.c.
Changes to win/tkWinX.c.