mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
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:
parent
6089967e07
commit
57c18c38bb
3 changed files with 66 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue