On Tue, 11 Mar 1997, Rick Macdonald wrote:
> As the focus follows the mouse from one toplevel window to another, the
> "Widget" name (and the "Alias") in the "Widget Info" window changes
> accordingly to the toplevel of the window that the mouse is in, but the
> "Insert" field doesn't change until you click in another toplevel
> window.
Rick,
This is undoubtedly an artifact of your window manager (fvwm, I
presume) and your focus policy. I have had a great deal of difficulty
with toplevel selection and the interaction with tk and window
managers. Here's the kicker, if you want to consistently select a
toplevel as insertion point, you must click on the background of the
toplevel. People's expectation, though, is that clicking the titlebar
of a window makes it active. It's nonintuitive to have the insertion
point be a window which is not active... and this is what I struggled
with from 1.07 to 1.08. The inconsistency arises with window managers
reporting of window selection to tk. If you click on the titlebar of
a window that is not active which becomes active, there is no distinct
event for this. In fact, it generates several events. I've made a
best-guess approach at this and I'll have to review the code for the
specifics, but now that I think about it, I can see how it is causing
you problems. I do not use the focus-follows-mouse policy so I would
never see this.
-stewart-