diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2016-10-10 17:09:24 +0200 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2016-10-12 08:41:15 +0200 |
commit | e0fda738232d6a1c69a150d7528a970887fb459f (patch) | |
tree | 3e956b3b5f45f9cd056480c9f6b574be83d100b7 | |
parent | e20d81b1627b09494c00fd29f952fc17e618af46 (diff) | |
download | cogl-e0fda738232d6a1c69a150d7528a970887fb459f.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.c | 2 |
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 2e220528..dad7b1e4 100644 --- a/cogl/winsys/cogl-winsys-egl-wayland.c +++ b/cogl/winsys/cogl-winsys-egl-wayland.c @@ -785,6 +785,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) { |