diff options
author | emersion <contact@emersion.fr> | 2017-09-30 13:22:42 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-09-30 13:22:42 +0200 |
commit | 28d4b475dc74302653882e5f5f58506c5c16bcb6 (patch) | |
tree | abb3f42949154bc67a40770a008fa99664d1917e /include | |
parent | 33a97576ca3169b7771a0bd574383f5cf502f583 (diff) |
Add edges support, remove get_input_bounds
Diffstat (limited to 'include')
-rw-r--r-- | include/rootston/input.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/rootston/input.h b/include/rootston/input.h index cf4513e5..c2e0ff75 100644 --- a/include/rootston/input.h +++ b/include/rootston/input.h @@ -53,6 +53,13 @@ enum roots_cursor_mode { ROOTS_CURSOR_ROTATE = 3, }; +enum roots_cursor_resize_edge { + ROOTS_CURSOR_RESIZE_EDGE_TOP = 1, + ROOTS_CURSOR_RESIZE_EDGE_BOTTOM = 2, + ROOTS_CURSOR_RESIZE_EDGE_LEFT = 4, + ROOTS_CURSOR_RESIZE_EDGE_RIGHT = 8, +}; + struct roots_input_event { uint32_t serial; struct wlr_cursor *cursor; @@ -71,6 +78,7 @@ struct roots_input { enum roots_cursor_mode mode; struct roots_view *active_view; int offs_x, offs_y; + int view_width, view_height; uint32_t resize_edges; // Ring buffer of input events that could trigger move/resize/rotate |