From 756700a02a29eeb5ff9aaab406634f0ef2dba750 Mon Sep 17 00:00:00 2001 From: Jehan Date: Tue, 20 May 2025 17:09:36 +0200 Subject: [PATCH] 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. --- app/widgets/gimpdialogfactory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/widgets/gimpdialogfactory.c b/app/widgets/gimpdialogfactory.c index f00d9f8eb8..712516f9fa 100644 --- a/app/widgets/gimpdialogfactory.c +++ b/app/widgets/gimpdialogfactory.c @@ -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)); }