From 5440b24f062e5ec963477a2367c0602a3d8957ea Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Mon, 10 Oct 2016 17:09:24 +0200 Subject: wayland-winsys: Take possible pending resize into account When doing two resizes in a row, a pending resize may be different from the new size whereas the cogl framebuffer is already of the same size, in which case the new resize might be erroneously ignored. https://bugzilla.gnome.org/show_bug.cgi?id=772707 --- cogl/winsys/cogl-winsys-egl-wayland.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogl/winsys/cogl-winsys-egl-wayland.c b/cogl/winsys/cogl-winsys-egl-wayland.c index a0f3f34d..320f2241 100644 --- a/cogl/winsys/cogl-winsys-egl-wayland.c +++ b/cogl/winsys/cogl-winsys-egl-wayland.c @@ -784,6 +784,8 @@ cogl_wayland_onscreen_resize (CoglOnscreen *onscreen, if (cogl_framebuffer_get_width (fb) != width || cogl_framebuffer_get_height (fb) != height || + wayland_onscreen->pending_width != width || + wayland_onscreen->pending_height != height || offset_x || offset_y) { -- cgit v1.2.1