Tk Source Code

View Ticket
Login
Ticket UUID: 5431c8e8491332820b7015c75422fc81ba23436a
Title: Wayland branch: a double-click on a ttk::treeview indicator raises an error (bad merge in treeview.tcl), and treeview.test hangs
Type: Bug Version: wayland
Submitter: serhiy.storchaka Created on: 2026-10-14 18:06:32
Subsystem: 88. Themed Tk Assigned To: aku
Priority: 5 Medium Severity: Important
Status: Closed Last Modified: 2026-10-22 17:22:37
Resolution: Fixed Closed By: serhiy.storchaka
    Closed on: 2026-10-14 18:53:55
Description:

On the wayland branch ([83fe22d94c]), ttk::treeview::DoubleClick in library/ttk/treeview.tcl has a broken condition:

	if {[$w haschildren $item] &&
		[string eq "Treeitem.indicator"} {

so a double-click on the indicator of an item raises "missing close-bracket", and the error dialog of bgerror opens. ttk/treeview.test hangs in Button_Events-47.3 for this reason: it clicks on the same place as Button_Events-47.2, which makes a double-click, and the test waits for the dialog to be dismissed. This happens with X11 as well as with Wayland.

The merge [c5fed50429] also reverted the patterns *Treeitem.indicator and *Checkbutton.* in Press to exact element names (the fix of [7304daadc1] on trunk) and changed a comment. These three hunks are the only differences from trunk; with the file of trunk, treeview.test passes on X11 and runs to the end on Wayland (13 Bbox tests fail there because the heading is 19 pixels high instead of 20 or more).

User Comments: kevin_walzer added on 2026-10-14 18:37:55:
Confirmed fix and merged to wayland, thank you.

serhiy.storchaka added on 2026-10-14 18:07:32:

Proposed fix in branch wayland-treeview-merge-fix, [37d0bb851b], based on the current wayland: library/ttk/treeview.tcl is restored from trunk. With it, treeview.test passes on X11 (1546 tests) and runs to the end on Wayland, with only the 13 Bbox tests failing.