From 57c18c38bbf07656b30dd5efa15319e4c92de256 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Tue, 5 Sep 2017 07:48:28 -0400 Subject: 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. --- include/wlr/types/wlr_output_layout.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_output_layout.h b/include/wlr/types/wlr_output_layout.h index 78127f19..9cccd53c 100644 --- a/include/wlr/types/wlr_output_layout.h +++ b/include/wlr/types/wlr_output_layout.h @@ -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; -- cgit v1.2.3