summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2016-10-10 17:09:24 +0200
committerOlivier Fourdan <ofourdan@redhat.com>2016-10-11 13:19:43 +0200
commit5440b24f062e5ec963477a2367c0602a3d8957ea (patch)
treeacc864291141d2dac4e7d7d14e0a4222fe49ae55
parent05294868f9632f7e91e11796098381b2dc7fe94f (diff)
downloadcogl-5440b24f062e5ec963477a2367c0602a3d8957ea.tar.gz
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
-rw-r--r--cogl/winsys/cogl-winsys-egl-wayland.c2
1 files changed, 2 insertions, 0 deletions
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)
{