FileChooser window not in focus on Xorg and GTK 4.6.5
Under GTK 4.6.5 and before (at least from 4.6.3) in X11 (Ubuntu 22.04, proposed stream) filechooser is called without becoming the window in focus. This means that on applications like browsers (Brave, Chrome, Firefox), the filechooser dialogue is displayed on top of the parent application window, but the application window is still in focus. Instead, the new filechooser window should be in focus.
Steps to reproduce in a way that demonstrates issue:
- Open browser window.
- Navigate to a page that has a text box where you can type (e.g., pastebin). Click on the text box so that it can receive keyboard input.
- Press ctrl + s to bring up save dialogue.
- Type some characters. Nothing happens on the filechooser dialogue box.
- Press escape. Nothing happens on filechooser dialogue box.
- Click cancel on dialogue box.
- View your text input field. It should contain the characters that you typed when filechooser was displayed.
Expected Outcome:
- When dialogue box is brought up, it should be made as the window that has current focus.
- When dialogue box is brought up, it should be ready to accept keyboard input (escape cancels, and typing changes filename in a save dialogue box; escape cancels open dialogue box)
Version information:
- GTK 4.6.5 from Ubuntu 22.04's proposed stream on Xorg.
Additional Information:
- Bug has been present since at least 4.6.3 (the default GTK version on Ubuntu 22.04). The expanding filechooser dialogue box was fixed (#4136 (closed)) but this bug remained.