broadway: Stop using gdk_display_get_toplevel_windows

We already keep a list of all toplevels in the broadway
display struct. Just use it.
This commit is contained in:
Matthias Clasen 2017-11-05 18:19:04 -05:00
parent 206da9774d
commit 84a3772ef6

View File

@ -89,7 +89,7 @@ _gdk_broadway_display_size_changed (GdkDisplay *display,
gdk_monitor_set_size (monitor, msg->width, msg->height);
gdk_monitor_set_physical_size (monitor, msg->width * 25.4 / 96, msg->height * 25.4 / 96);
toplevels = gdk_display_get_toplevel_windows (display);
toplevels = broadway_display->toplevels;
for (l = toplevels; l != NULL; l = l->next)
{
GdkWindow *toplevel = l->data;