aboutsummaryrefslogtreecommitdiff
path: root/include/rootston/input.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rootston/input.h')
-rw-r--r--include/rootston/input.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/include/rootston/input.h b/include/rootston/input.h
index b55288c9..5cd7509e 100644
--- a/include/rootston/input.h
+++ b/include/rootston/input.h
@@ -65,6 +65,17 @@ struct roots_input_event {
struct wlr_input_device *device;
};
+struct roots_drag_icon {
+ struct wlr_surface *surface;
+ struct wl_list link; // roots_input::drag_icons
+
+ int32_t sx;
+ int32_t sy;
+
+ struct wl_listener surface_destroy;
+ struct wl_listener surface_commit;
+};
+
struct roots_touch_point {
struct roots_touch *device;
int32_t slot;
@@ -78,13 +89,13 @@ 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;
enum roots_cursor_mode mode;
- struct roots_view *active_view, *last_active_view;
+ struct roots_view *active_view;
int offs_x, offs_y;
int view_x, view_y, view_width, view_height;
float view_rotation;
@@ -114,6 +125,7 @@ struct roots_input {
struct wl_listener cursor_tool_axis;
struct wl_listener cursor_tool_tip;
+ struct wl_listener pointer_grab_begin;
struct wl_list touch_points;
struct wl_listener pointer_grab_end;
@@ -146,6 +158,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);