cursor: expose a wlr_touch device

Instead of copy-pasting all wlr_touch events, expose a wlr_touch
device which emits the union of all aggregated touch devices.

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3398
This commit is contained in:
Simon Ser 2022-05-27 18:12:38 +02:00
parent 4f5d6e4746
commit d74a40a320
3 changed files with 21 additions and 23 deletions

View file

@ -12,6 +12,7 @@
#include <wayland-server-core.h>
#include <wlr/types/wlr_output_layout.h>
#include <wlr/types/wlr_output.h>
#include <wlr/types/wlr_touch.h>
struct wlr_input_device;
@ -33,6 +34,8 @@ struct wlr_cursor {
struct wlr_cursor_state *state;
double x, y;
struct wlr_touch touch;
/**
* The interpretation of these signals is the responsibility of the
* compositor, but some helpers are provided for your benefit. If you
@ -62,12 +65,6 @@ struct wlr_cursor {
struct wl_signal hold_begin;
struct wl_signal hold_end;
struct wl_signal touch_up;
struct wl_signal touch_down;
struct wl_signal touch_motion;
struct wl_signal touch_cancel;
struct wl_signal touch_frame;
struct wl_signal tablet_tool_axis;
struct wl_signal tablet_tool_proximity;
struct wl_signal tablet_tool_tip;