From 92e0e22e8b3e59a6d01af1b371e8c3e9182878ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= Date: Thu, 31 Jul 2025 16:22:29 +0200 Subject: [PATCH] Put each main window into its own group This fixes the problem that a main window cannot be used if a modal dialog is opened in another main window. --- src/bin/clapper-app/clapper-app-window.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bin/clapper-app/clapper-app-window.c b/src/bin/clapper-app/clapper-app-window.c index 5876ec1e..3641f959 100644 --- a/src/bin/clapper-app/clapper-app-window.c +++ b/src/bin/clapper-app/clapper-app-window.c @@ -1198,6 +1198,7 @@ clapper_app_window_init (ClapperAppWindow *self) GtkSettings *settings; GtkWidget *dummy_titlebar; gint distance = 0; + GtkWindowGroup *group; gtk_widget_set_size_request (GTK_WIDGET (self), MIN_WINDOW_WIDTH, MIN_WINDOW_HEIGHT); @@ -1229,6 +1230,11 @@ clapper_app_window_init (ClapperAppWindow *self) gtk_drop_target_set_gtypes (self->drop_target, (GType[3]) { GDK_TYPE_FILE_LIST, G_TYPE_FILE, G_TYPE_STRING }, 3); + + /* Add to window group */ + group = gtk_window_group_new (); + gtk_window_group_add_window (group, GTK_WINDOW (self)); + g_object_unref (group); } static void