input: Keep per client pointer resources in their own structs
authorJonas Ådahl <jadahl@gmail.com>
Wed, 22 Jul 2015 04:05:38 +0000 (12:05 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Fri, 20 Nov 2015 03:52:19 +0000 (11:52 +0800)
commit2cbf293b0551357ae36757788e385e391f971386
tree17cb08914fb3b1b98e5bb81c337a78f13d008885
parent8283c343ec0b21c88edc7dbfaafbc2ed53d78d61
input: Keep per client pointer resources in their own structs

Keep all per client wl_pointer resources in a new struct called
'weston_pointer_client'. When focus changes, instead of moving a list
of resources between different lists, just change the focused pointer
client.

The intention with this is to make it easier to add wl_pointer
extensions that share the same focus as the corresponding wl_pointer.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
desktop-shell/shell.c
src/compositor.h
src/input.c