diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-10-27 13:42:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-27 13:42:53 -0400 |
commit | 9f1ed70b81adc0680ba796a5545709036bc54408 (patch) | |
tree | da33a734e90c78467ed838506f86d392305d6500 /include/rootston | |
parent | 0572abbb252edfc27232c08893b7440561ca171d (diff) | |
parent | ec5beeb8b8eec615f74f640f84e8fa8e451ba3bb (diff) |
Merge pull request #344 from emersion/compositor-action-cursors
Set compositor cursor for move, resize and rotate
Diffstat (limited to 'include/rootston')
-rw-r--r-- | include/rootston/input.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/rootston/input.h b/include/rootston/input.h index f6d75bf6..b9af5028 100644 --- a/include/rootston/input.h +++ b/include/rootston/input.h @@ -88,8 +88,7 @@ struct roots_input { // TODO: multiseat, multicursor struct wlr_cursor *cursor; - struct wlr_xcursor_theme *theme; - struct wlr_xcursor *xcursor; + struct wlr_xcursor_theme *xcursor_theme; struct wlr_seat *wl_seat; struct wl_list drag_icons; struct wl_client *cursor_client; @@ -158,6 +157,12 @@ void view_begin_move(struct roots_input *input, struct wlr_cursor *cursor, void view_begin_resize(struct roots_input *input, struct wlr_cursor *cursor, struct roots_view *view, uint32_t edges); +struct wlr_xcursor *get_default_xcursor(struct wlr_xcursor_theme *theme); +struct wlr_xcursor *get_move_xcursor(struct wlr_xcursor_theme *theme); +struct wlr_xcursor *get_resize_xcursor(struct wlr_xcursor_theme *theme, + uint32_t edges); +struct wlr_xcursor *get_rotate_xcursor(struct wlr_xcursor_theme *theme); + void set_view_focus(struct roots_input *input, struct roots_desktop *desktop, struct roots_view *view); |