wayland: fix filechooser crash

The size of the window can be updated before we're requested its
creation on the compositor.

https://bugzilla.gnome.org/show_bug.cgi?id=786673
This commit is contained in:
Matthias Clasen 2017-08-23 10:27:43 -04:00
parent 53ad763042
commit 4402335333

View File

@ -331,13 +331,9 @@ gdk_wayland_window_update_size (GdkWindow *window,
impl->scale = scale;
if (impl->display_server.egl_window)
{
wl_egl_window_resize (impl->display_server.egl_window,
width * scale,
height * scale,
0, 0);
}
wl_surface_set_buffer_scale (impl->display_server.wl_surface, scale);
wl_egl_window_resize (impl->display_server.egl_window, width * scale, height * scale, 0, 0);
if (impl->display_server.wl_surface)
wl_surface_set_buffer_scale (impl->display_server.wl_surface, scale);
area.x = 0;
area.y = 0;