[PATCH weston v1 04/17] tests: use wl_* objects instead of test structs
Pekka Paalanen
ppaalanen at gmail.com
Fri Dec 12 05:59:19 PST 2014
On Fri, 5 Dec 2014 14:36:37 +0100
Marek Chalupa <mchqwerty at gmail.com> wrote:
> When storing client state i. e. focus, we use our structs.
> For example when we got pointer focus, we store into pointer->focus
> the type 'struct surface'. We did it via user data in wl_* object,
> but toytoolkit has its own data in the objects and storing and reading
> them as our structures results in reading "garbage".
> Solution: store wl_* objects instead - we don't need anything more.
>
> Signed-off-by: Marek Chalupa <mchqwerty at gmail.com>
> ---
> tests/event-test.c | 5 +++--
> tests/keyboard-test.c | 6 +++---
> tests/text-test.c | 2 +-
> tests/weston-test-client-helper.c | 12 ++++++------
> tests/weston-test-client-helper.h | 6 +++---
> 5 files changed, 16 insertions(+), 15 deletions(-)
Reviewed-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
Thanks,
pq
More information about the wayland-devel
mailing list