Transient location entry no longer hides automatically when focused-out
Affected version
- Nightly flatpak: Yes
Steps to reproduce
- Make sure
org.gnome.nautilus.preferences always-use-location-entry
gsetting is false (this is the default) - Prompt location entry (CtrlL)
- Click elsewhere in the window.
Current behavior
The transient location entry remains visible, instead of showing the pathbar.
Expected behavior
The pathbar is visible.
Additional information
Under GTK 4, GtkEntry no longer gets keyboard focus itself; its GtkText child gets it instead.
So, we need to use GtkEventControllerFocus and track its contains-focus property instead.
Also, it would be nice to hide only if the focus changes to another widget inside this window, not if it changes to another window.