clients/window: bump wl_seat version to 6
authorSebastian Wick <sebastian@sebastianwick.net>
Fri, 1 Nov 2019 01:15:10 +0000 (02:15 +0100)
committerSebastian Wick <sebastian@sebastianwick.net>
Mon, 4 Nov 2019 14:10:04 +0000 (15:10 +0100)
Hook up listeners for touch shape and touch orientation.

Signed-off-by: Sebastian Wick <sebastian@sebastianwick.net>
clients/window.c

index b00834595c368532472f52aeb5fa2dc51c748398..1baab32e85b33f6ee1354aae08d7607f1f4ba4d4 100644 (file)
@@ -3374,12 +3374,24 @@ touch_handle_cancel(void *data, struct wl_touch *wl_touch)
        }
 }
 
+void touch_handle_shape(void *data, struct wl_touch *wl_touch, int32_t id,
+                        wl_fixed_t major, wl_fixed_t minor)
+{
+}
+
+void touch_handle_orientation(void *data, struct wl_touch *wl_touch, int32_t id,
+                              wl_fixed_t orientation)
+{
+}
+
 static const struct wl_touch_listener touch_listener = {
        touch_handle_down,
        touch_handle_up,
        touch_handle_motion,
        touch_handle_frame,
        touch_handle_cancel,
+       touch_handle_shape,
+       touch_handle_orientation,
 };
 
 static void
@@ -5795,7 +5807,7 @@ static void
 display_add_input(struct display *d, uint32_t id, int display_seat_version)
 {
        struct input *input;
-       int seat_version = MIN(display_seat_version, 5);
+       int seat_version = MIN(display_seat_version, 6);
 
        input = xzalloc(sizeof *input);
        input->display = d;