diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-04-02 11:38:21 -0400 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-04-02 11:40:40 -0400 |
commit | e4cd000cef3c1dde52da48ce1afde3f6ee918077 (patch) | |
tree | e6f5c8229c5b34bdca43f94807832c7548ffb38a /src/wayland/meta-wayland-seat.c | |
parent | 6296fefea615eb46f1096948b6d16ff26403aeba (diff) | |
download | mutter-e4cd000cef3c1dde52da48ce1afde3f6ee918077.tar.gz |
wayland: Implement wl_seat v3
The new XWayland DDX flat out requires seat v3.
Diffstat (limited to 'src/wayland/meta-wayland-seat.c')
-rw-r--r-- | src/wayland/meta-wayland-seat.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/wayland/meta-wayland-seat.c b/src/wayland/meta-wayland-seat.c index 2d5f0fbb9..f5e3867a4 100644 --- a/src/wayland/meta-wayland-seat.c +++ b/src/wayland/meta-wayland-seat.c @@ -115,8 +115,16 @@ pointer_set_cursor (struct wl_client *client, meta_wayland_seat_update_cursor_surface (seat); } +static void +pointer_release (struct wl_client *client, + struct wl_resource *resource) +{ + wl_resource_destroy (resource); +} + static const struct wl_pointer_interface pointer_interface = { - pointer_set_cursor + pointer_set_cursor, + pointer_release, }; static void @@ -138,6 +146,17 @@ seat_get_pointer (struct wl_client *client, } static void +keyboard_release (struct wl_client *client, + struct wl_resource *resource) +{ + wl_resource_destroy (resource); +} + +static const struct wl_keyboard_interface keyboard_interface = { + keyboard_release, +}; + +static void seat_get_keyboard (struct wl_client *client, struct wl_resource *resource, uint32_t id) |