GNOME Bugzilla – Bug 772707
[Wayland] Race condition in cogl_wayland_onscreen_resize()
Last modified: 2016-10-12 11:49:26 UTC
Description: When using totem on Wayland, switching back and forth between fullscreen and normal, the content may sometimes not be sized correctly. How reproducible: Randomly Additional data: I suspect this is a race condition in cogl_wayland_onscreen_resize() which checks if the cogl framebuffer width/height is different from the given new width/height, but there might be already a resize pending of a different size.
Created attachment 337332 [details] [review] [PATCH] 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.
Review of attachment 337332 [details] [review]: Looks good to me.
Comment on attachment 337332 [details] [review] [PATCH] wayland-winsys: Take possible pending resize into account attachment 337332 [details] [review] has been pushed to git master as commit 5440b24 - wayland-winsys: Take possible pending resize into account
I reckon this should be pushed in branch 1.22 as well, want me to push it there as well?
(In reply to Olivier Fourdan from comment #4) > I reckon this should be pushed in branch 1.22 as well, want me to push it > there as well? Sorry, I should have been more explicit: cogl-1.22 is, for all intents and purposes, the 'master' branch that GNOME relies on. The 'master' branch is unused and it's unlikely to even build.
(In reply to Emmanuele Bassi (:ebassi) from comment #5) > (In reply to Olivier Fourdan from comment #4) > > I reckon this should be pushed in branch 1.22 as well, want me to push it > > there as well? > > Sorry, I should have been more explicit: cogl-1.22 is, for all intents and > purposes, the 'master' branch that GNOME relies on. > > The 'master' branch is unused and it's unlikely to even build. Oh... right... So attachment 337332 [details] [review] pushed to branch "cogl-1.22" as commit e0fda73 - wayland-winsys: Take possible pending resize into account