File chooser is hidden when parent is hidden, even when parent is un-hidden, and continues to block interaction
If the parent window of a file chooser is hidden, the file chooser is also hidden. When the parent window is un-hidden, the file chooser is not restored. The file chooser still prevents interaction with the main window, effectively freezing the program. I believe this issue began in GTK 4 as it looks like dialogs are more attached to their parents than they were in GTK 3, although I don't know exactly when as I only fairly recently moved from pure GTK 3 cinnamon to Fedora.
In the specific application where this was discovered, it is desired in certain configurations to be able to hide the window, but still show the file chooser. I would prefer the resolution to this issue be that hiding the window only hides the window, not the file picker, as I believe it did with GTK 3.
Initially discovered in Guake, attached is the results of quick troubleshooting in python to locate the source of the issue, can attempt to port sample to C if needed.
Steps to reproduce
- Open a file chooser window
- Hide the window
- Show the window
- Attempt to interact with the window
If a file chooser dialog is popped, then the parent window is hidden and un-hidden, the dialog does not come back and the program hangs
When the parent window is hidden, the dialog does not hide as well.
Also installed, gtk3-3.24.31-2.fc35.x86_64
No longer have access to the previous mint installation where this formerly worked, but it was mint 20.2, cinnamon edition which I expect was GTK 3 and I'm pretty sure this worked the way described in expected outcome.
A thought that came up as I was writing this, but this maybe is related to dialogs in general, not just the file chooser.