Issue #13436: dock windows follow main window with all but NORMAL hint.

Per testing by Gabriele and discussions on IRC, it doesn't make sense
that UTILITY windows also keep all dockables above. Otherwise what's the
difference with KEEP_ABOVE?

Also it turns out that on macOS, setting a parent makes the transient
window follow the parent window (so it's close to the modal window
concept of GNOME). So that makes it even more important that our utility
windows don't have a parent.
This commit is contained in:
Jehan 2025-05-20 17:09:36 +02:00
parent b8a39a4911
commit 756700a02a

View file

@ -632,7 +632,7 @@ gimp_dialog_factory_dialog_new_internal (GimpDialogFactory *factory,
if (context != NULL)
config = GIMP_GUI_CONFIG (context->gimp->config);
if (! config || config->dock_window_hint != GIMP_WINDOW_HINT_NORMAL)
if (! config || config->dock_window_hint == GIMP_WINDOW_HINT_KEEP_ABOVE)
gtk_window_set_transient_for (GTK_WINDOW (dialog),
GTK_WINDOW (parent_toplevel));
}