clients/window: bump wl_seat version to 6
Hook up listeners for touch shape and touch orientation. Signed-off-by: Sebastian Wick <sebastian@sebastianwick.net>
This commit is contained in:
+13
-1
@@ -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 = {
|
static const struct wl_touch_listener touch_listener = {
|
||||||
touch_handle_down,
|
touch_handle_down,
|
||||||
touch_handle_up,
|
touch_handle_up,
|
||||||
touch_handle_motion,
|
touch_handle_motion,
|
||||||
touch_handle_frame,
|
touch_handle_frame,
|
||||||
touch_handle_cancel,
|
touch_handle_cancel,
|
||||||
|
touch_handle_shape,
|
||||||
|
touch_handle_orientation,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -5795,7 +5807,7 @@ static void
|
|||||||
display_add_input(struct display *d, uint32_t id, int display_seat_version)
|
display_add_input(struct display *d, uint32_t id, int display_seat_version)
|
||||||
{
|
{
|
||||||
struct input *input;
|
struct input *input;
|
||||||
int seat_version = MIN(display_seat_version, 5);
|
int seat_version = MIN(display_seat_version, 6);
|
||||||
|
|
||||||
input = xzalloc(sizeof *input);
|
input = xzalloc(sizeof *input);
|
||||||
input->display = d;
|
input->display = d;
|
||||||
|
|||||||
Reference in New Issue
Block a user