mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
macos: maintain GList element consistency
We need to keep this consistent so that we can look things up faster in other places. Therefore, just take the hit here and clear the entire list ensuring prev/next poniters are cleared.
This commit is contained in:
parent
2e52386be5
commit
e317b9be00
@ -1056,9 +1056,8 @@ _gdk_macos_display_clear_sorting (GdkMacosDisplay *self)
|
|||||||
{
|
{
|
||||||
g_return_if_fail (GDK_IS_MACOS_DISPLAY (self));
|
g_return_if_fail (GDK_IS_MACOS_DISPLAY (self));
|
||||||
|
|
||||||
self->sorted_surfaces.head = NULL;
|
while (self->sorted_surfaces.head != NULL)
|
||||||
self->sorted_surfaces.tail = NULL;
|
g_queue_unlink (&self->sorted_surfaces, self->sorted_surfaces.head);
|
||||||
self->sorted_surfaces.length = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const GList *
|
const GList *
|
||||||
|
Loading…
Reference in New Issue
Block a user