From 0f325fa0d0c992e4eeb2cd1ec398f793f4d844ca Mon Sep 17 00:00:00 2001 From: Jehan Date: Mon, 26 Jan 2026 16:33:00 +0100 Subject: [PATCH] app: only grab focus on canvas when exiting the color dialog. This was introduced in commit d4733e5b21. This was triggering a focus grab each time we changed the color from within the FG/BG dialog, which in particular had the focus being lost from said dialog. This is not really good usability wise (and as a side issue, with some themes, the focus change was apparently a bit bothering visually). --- app/widgets/gimptoolbox-color-area.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/widgets/gimptoolbox-color-area.c b/app/widgets/gimptoolbox-color-area.c index 79f8dcbef9..825fc0ce4a 100644 --- a/app/widgets/gimptoolbox-color-area.c +++ b/app/widgets/gimptoolbox-color-area.c @@ -206,7 +206,7 @@ color_area_dialog_update (GimpColorDialog *dialog, break; } - if (gimp_context_get_display (context)) + if (gimp_context_get_display (context) && state != GIMP_COLOR_DIALOG_UPDATE) gimp_display_grab_focus (gimp_context_get_display (context)); }