The first roundtrip only ensures the globals have been enumerated by the
registry.
After binding wl_shm, we need a new roundtrip to make sure the formats
have been enumerated, otherwise we might check for has_argb too early.
This is similar to the simple-shm example.
Signed-off-by: Paul Liétar
Le 14 mai 2014 à 10:14, Pekka Paalanen a écrit :
> Hi
>
> Looks good! This is 1.5-stable stuff, and probably for all earlier
> stable branches, too.
>
> Excellent find, already proves that working on a middle-man dumper is
> useful. :-) In fact, adding a mode to the dumper program, where it wil
tches add roundtrips in toytoolkit and simple-touch to
fix the problems.
Paul Liétar (2):
simple-touch: Make sure shm formats have been enumerated.
window: Make a roundtrip to ensure globals have been enumerated.
clients/simple-touch.c | 7 ++-
clients/window.c | 6 +-
2 files ch
If the compositor enumerates the globals too slowly, the d->sum pointer
is still NULL by the time create_cursors is called, and leads to a null
pointer dereferencing.
A roundtrip is needed to make sure all globals have been enumerated.
Signed-off-by: Paul Liétar
---
clients/window.c