GNOME Bugzilla – Bug 696791
wayland: Queue a redraw after showing the stage
Last modified: 2013-03-28 16:37:58 UTC
On the other backends we will get some sort of expose event after showing the stage's window which will queue a redraw. These expose events don't exist on Wayland so nothing will cause Clutter to queue a redraw. Weston doesn't bother displaying anything for the stage's surface until the first buffer is sent, which of course it will never receive if Clutter doesn't paint anything. This patch just makes it explicitly queue a redraw after the stage is shown so that we will always pass at least one frame to the compositor. The bug can be seen by running test-stage-sizing. That example doesn't have any animations so it won't try to queue any redraws until something interacts with it. On the other hand something like test-actors works fine without the patch because it constantly queues redraws anyway in order to display the animation.
Created attachment 240065 [details] [review] wayland: Queue a redraw after showing the stage
Review of attachment 240065 [details] [review]: makes sense.
Ok, thanks. I've pushed it to master and the clutter-1.14 branch. https://git.gnome.org/browse/clutter/commit/?id=d5896d284ee https://git.gnome.org/browse/clutter/commit/?id=3e6f32f6d07