tests: do attach only with normal surfaces

When we call move_client on toytoolkit client when intializing, then the
wl_buffer is NULL and we don't want that. Actually, toytoolkit clients
don't need attaching and commiting the surface at all, because it has
been already done.

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
tests: link tests against libtoytoolkit

We want to use toytoolkit in tests

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
tests: remove static definitions of xzalloc

It is in libtoytoolkit and it collides

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
tests: rename shm_listener to wl_shm_listener

The name collides with the shm_listener from toytoolkit

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
tests: add toytoolkit into struct client

Allow store information about toytoolkit widget in client.
Now we'll be able to get client behave as a toytoolkit client.

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
tests: add toytoolkit_client_create

This function will create a client with features from toytoolkit.
It is frame decorated client which is able to do all the usual stuff.
The only difference from normal client is, that it has two instances
of input objects (wl_pointer, wl_keyboard, ...) so that events on
one of the objects are setting the state of the client (as before)
and the another one is from toytoolkit and can be used as usually
(register a handler for events)

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
tests: test if client was populated properly

Since we are populating our client from globals that we get
from toytoolkit, check if we have everyting.

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
window: add display_dispatch

Split display_run into two functions - display_run and display_dispatch.
display_dispatch is the part that actually does something and
display_run just calls it in a loop. Now we can dispatch toytoolkit
events in tests (display_run is blocking, so we couldn't use that)

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
add get_geometry & geometry request/event
tests: make client_roundtrip universal

Make client_roundtrip a function instead of macro and
make it work with both - normal clients and toytoolkit clients.

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>