Tk Source Code

Check-in [3f837827]
Login

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

Overview
Comment: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.

Downloads: See separate download page
Timelines: family | ancestors | descendants | both | win-nonclient-buttons
Files: files | file ages | folders
SHA3-256: 3f837827c392204ded7d4c2971daf436d621cbd1b56c24310345d8f07f313062
User & Date: serhiy.storchaka 2026-09-28 19:32:05.083
Context
2026-10-26
14:45
Fix for [1391053fff]: Win32 nonclient double-click causes spurious Button-1 in app check-in: b3616e16 user: csaba 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

14:00
Use TkObjIsEmpty() in more places check-in: 40f0e170 user: jan.nijtmans tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to win/tkWinInt.h.
Changes to win/tkWinPointer.c.
Changes to win/tkWinWm.c.
Changes to win/tkWinX.c.