Opening tooltip when window out of focus brings window to foreground without taking focus
Submitted by Marc Micalizzi
Assigned to gtk-win32 maintainers
On win32 (not sure if this occurs anywhere else) if a window is in the background, but partially visible, and you hover the mouse over something that has a tooltip, the entire window is brought to the foreground, but does not take focus.
The issue here is in order to switch back to whatever window was in the foreground previously, you must click on the gtk+ window, and then back on the other window, as clicking just back on the other window no longer works, as that window still has focus.
Better behaviour would be either: a) only the tooltip is brought to foreground, not the entire window (I believe this was the behaviour on versions previous to gtk+4) or b) the window needs to take focus
This issue is compounded in one of my applications where a modal GtkDialog is opened from the context menu of a GtkTreeView, however the mouse is left long enough on the treeview to trigger a tooltip, and the modal dialog is sent out of the foreground, and then users can't figure out why the application is not responding (they would need to go to the taskbar to select the modal dialog and close it to regain interactivity)
This issue can be reproduced in the gtk4-demo, opening the Builder application, put the window into the background with the "New" button still visible, and another window covering the rest of the window, and hover the mouse over the new button.