cursor: add outputs_update event

This is necessary for supporting e.g. fractional-scale-v1 for
cursor surfaces.
This commit is contained in:
Simon Ser 2023-04-06 12:33:12 +02:00
parent 835208db98
commit 8e40c83799
2 changed files with 47 additions and 0 deletions

View file

@ -29,6 +29,11 @@ struct wlr_input_device;
struct wlr_box;
struct wlr_cursor_state;
struct wlr_cursor_outputs_update_event {
struct wlr_output *const *outputs;
size_t outputs_len;
};
struct wlr_cursor {
struct wlr_cursor_state *state;
double x, y;
@ -72,6 +77,8 @@ struct wlr_cursor {
struct wl_signal tablet_tool_proximity;
struct wl_signal tablet_tool_tip;
struct wl_signal tablet_tool_button;
struct wl_signal outputs_update; // struct wlr_cursor_outputs_update_event
} events;
void *data;