gtkwindowgroup: Take default group into account when listing windows

Otherwise, no windows belong to the default group, paradoxically.
This commit is contained in:
Carlos Garnacho 2020-04-24 23:03:13 +02:00
parent 777fd92eba
commit 2a877a9be5

View File

@ -202,7 +202,7 @@ gtk_window_group_list_windows (GtkWindowGroup *window_group)
{
GtkWindow *window = toplevel->data;
if (window_group == _gtk_window_get_window_group (window))
if (window_group == gtk_window_get_group (window))
group_windows = g_list_prepend (group_windows, window);
}