On linux, adding a tooltip to one of the texteditor widgets the JuceDemo renders it almost unusable for text input: the tooltip shows up after 2 seconds and steals the focus everytime, it is not possible to type more that 4 or 5 characters before the tooltip shows up. This is something that used to work fine (the focus was not stolen by tooltip windows) in older juce versions (I have a version from April 2010 where it works).
There was the override_redirect flag that was used with “alwaysontop” windows in createWindow() , in the old JUCE version that used to work. Adding it again fixes this issue with tooltips, but it has probably been removed for a good reason , I guess.
Yes there is probably some other property to set to prevent the window manager from transfering the focus to the tooltip window but I can figure what it is. A similar issue probably happens also to popup menus, when one of them is displayed , the parent window loses its “active window” status (the titlebar becomes grayed), this also did not happen with the older juce versions
It seems that GTK menus do set the override_redirect flag on their windows, so I’m not sure if it can be avoided for this kind of windows.
As a temporary fix, I’m adding the override_redirect flag in createWindow when the window is created with alwaysontop and windowIsTemporary (in the old version , it was set for all windows with ‘isAlwaysOnTop’):
I’m jumping in the bandwagon, but did you see my other post about how to do a menu with the new GTK/Gnome (so they are like the other windows, that is a single menu bar on top à la Mac)
You have some documentation in the link inside that post. While you’re at it, it might worth doing it the way Gnome is doing.