aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-09-05 07:48:28 -0400
committerTony Crisci <tony@dubstepdish.com>2017-09-05 07:48:28 -0400
commit57c18c38bbf07656b30dd5efa15319e4c92de256 (patch)
tree2e60d3a149471809d3faea04ecf3f84f9e8547e9 /include
parent6089967e070f382ca33854c8dd9560a9b6c4af6f (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_output_layout.h5
1 files changed, 5 insertions, 0 deletions
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;