diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/rootston/input.h | 3 | ||||
-rw-r--r-- | include/rootston/view.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/rootston/input.h b/include/rootston/input.h index b4d6de65..cf4513e5 100644 --- a/include/rootston/input.h +++ b/include/rootston/input.h @@ -71,6 +71,7 @@ struct roots_input { enum roots_cursor_mode mode; struct roots_view *active_view; int offs_x, offs_y; + uint32_t resize_edges; // Ring buffer of input events that could trigger move/resize/rotate int input_events_idx; @@ -111,6 +112,6 @@ const struct roots_input_event *get_input_event(struct roots_input *input, void view_begin_move(struct roots_input *input, struct wlr_cursor *cursor, struct roots_view *view); void view_begin_resize(struct roots_input *input, struct wlr_cursor *cursor, - struct roots_view *view); + struct roots_view *view, uint32_t edges); #endif diff --git a/include/rootston/view.h b/include/rootston/view.h index 2bd71104..d690fd48 100644 --- a/include/rootston/view.h +++ b/include/rootston/view.h @@ -63,9 +63,11 @@ struct roots_view { // elsewhere void (*get_input_bounds)(struct roots_view *view, struct wlr_box *box); void (*activate)(struct roots_view *view, bool active); + void (*resize)(struct roots_view *view, uint32_t width, uint32_t height); }; void view_get_input_bounds(struct roots_view *view, struct wlr_box *box); void view_activate(struct roots_view *view, bool active); +void view_resize(struct roots_view *view, uint32_t width, uint32_t height); #endif |