In single window mode, "unsaved changes" and "preferences" dialogs windows are not set as modal and transient to the main window
Testing the beta flatpak version of GIMP with GTK3, I noticed that GIMP prompts the user about unsaved changes (whether for a single image to be closed with Ctrl+W
, or when exiting the whole app with Ctrl+Q
), the unsaved changes dialogs are not modal nor transient. This causes a couple of problems:
- Users can still do changes to the canvas (ex: use the paintbrush) before having made a decision on those dialogs
- The window manager doesn't know it needs to treat them as children of the main window, and everything that involves. That means, for example, that these windows would get their own entry in whatever window management UIs (overviews, taskbars, alt-tab, etc.), and also are not "guaranteed" to be automatically raised to the front whenever you are focusing GIMP again. It also means it's possible to de-focus those windows and focus the main window instead.
Overall, normally I'd expect those "critical choice" dialogs to have the modal property set, and the transient property pointing to the main window, as they are not filters/tool/utility windows.
The "Preferences" window might also benefit from the same treatment?
P.s.: I suspect this all makes sense only in GIMP's big "single window" mode, otherwise I'm not sure how to handle it in the traditional "everything is a floating window and the main GIMP window is a tiny tall toolbar dock" UI mode.