mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
f7c3c2dc95
Since 906e1b5eb535a86 Cogland no longer redraws constantly but instead only draws once at startup and then again whenever a client attaches a new buffer. Sometimes however it seems that the first paint will get lost perhaps because it is sent before the window is fully mapped. As it was previously not handling expose events it would not paint again until the first client is connected so there would be a blank window which looks broken. This patch makes it handle Expose events when it detects that Cogl is using an X backend. On other backends it will resort to queuing a redraw every 16ms as it did before. Although this is probably a bit overkill for such a small example, it seems like a good idea to only redraw when we think it's necessary so that we can be sure that the mechanism works. Handling the expose events means we can have at least one platform where we can test this. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit 99cf15b285302243395873d78f05a5895c173eef) |
||
---|---|---|
.. | ||
android/hello | ||
cogl-crate.c | ||
cogl-gles2-context.c | ||
cogl-gles2-gears.c | ||
cogl-hello.c | ||
cogl-info.c | ||
cogl-msaa.c | ||
cogl-sdl2-hello.c | ||
cogl-sdl-hello.c | ||
cogl-x11-foreign.c | ||
cogl-x11-tfp.c | ||
cogland.c | ||
crate.jpg | ||
Makefile.am |