When a popup menu is torn off, the resultant menu is iconified if the parent loses focus. This is a problem particularly if the tearoff is moved outside of the parent window, in which case it is very hard to get focus back to the menu. A simple case:
menu .foo -tearoff 1
.foo add command -label "foov"
bind . <3> "tk_popup .foo %X %Y
The right click in the window and do the tear off. When the mouse leaves the main window the tearoff will iconify.
By the way, this does not happen on Windows systems.
This bug annoys me too. It is visible in 8.5.9 and 8.6b2, but not 8.5.7
The above example is missing an end quote. It should be
menu .foo -tearoff 1
.foo add command -label "foov"
bind . <3> "tk_popup .foo %X %Y"
# Hopefully - not a input parser issue
What window manager are you using?
I ask that because I wonder if this is related to the EWMH support.
Bug is present on both Fedora 14 / KDE-4.5.2 (64bit) and Fedora 7 / KDE 3.5.10 (32bit)
I have pinned it down to being introduced in wish 8.5.9, and it exists in all later wish.
Hmm - Fed14/Gnome does not suffer this issue.
Currently Fedora 16 /KDE 4.7.4. I think it was Fedora 15 when the bug was submitted.
A work around exists inside KDE (4.5.2 at least):
WindowBehaviour->WindowBehaviour->Advanced->Hide Utility Windows for inactive apps