wlr_cursor: handle layout changes

Add the layout `destroy` and `change` events.

When a layout is destroyed, detach is from the wlr_cursor.

When a layout is changed, warp the cursor to the closest layout boundary.
This commit is contained in:
Tony Crisci 2017-09-05 07:48:28 -04:00
parent 6089967e07
commit 57c18c38bb
3 changed files with 66 additions and 1 deletions

View file

@ -9,6 +9,11 @@ struct wlr_output_layout_state;
struct wlr_output_layout {
struct wl_list outputs;
struct wlr_output_layout_state *state;
struct {
struct wl_signal change;
struct wl_signal destroy;
} events;
};
struct wlr_output_layout_output_state;