broadway: Fix toplevel handling

The toplevels list contains GdkWindowImplBroadways, and we shouldn't
free it.
This commit is contained in:
Alexander Larsson 2017-11-17 10:37:01 +01:00
parent f4ec6290f8
commit 810ba4edcf

View File

@ -92,14 +92,11 @@ _gdk_broadway_display_size_changed (GdkDisplay *display,
toplevels = broadway_display->toplevels; toplevels = broadway_display->toplevels;
for (l = toplevels; l != NULL; l = l->next) for (l = toplevels; l != NULL; l = l->next)
{ {
GdkWindow *toplevel = l->data; GdkWindowImplBroadway *toplevel_impl = l->data;
GdkWindowImplBroadway *toplevel_impl = GDK_WINDOW_IMPL_BROADWAY (toplevel->impl);
if (toplevel_impl->maximized) if (toplevel_impl->maximized)
gdk_window_move_resize (toplevel, 0, 0, msg->width, msg->height); gdk_window_move_resize (toplevel_impl->wrapper, 0, 0, msg->width, msg->height);
} }
g_list_free (toplevels);
} }