aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/seat.h
diff options
context:
space:
mode:
authorLibravatar Tudor Brindus <me@tbrindus.ca>2020-04-25 15:07:17 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2020-05-02 13:32:28 +0200
commit0dc1863dce163622371dc3ffb2c6073cbda17075 (patch)
tree4f0ff981ba6b2d513acb48b355c5c79d613f6909 /include/sway/input/seat.h
parentAdd a secondary headless backend (diff)
downloadsway-0dc1863dce163622371dc3ffb2c6073cbda17075.tar.gz
sway-0dc1863dce163622371dc3ffb2c6073cbda17075.tar.zst
sway-0dc1863dce163622371dc3ffb2c6073cbda17075.zip
input/cursor: make cursor rebasing cursor type-agnostic
This commit refactors `cursor_rebase` into `cursor_update_image`, and moves sending pointer events to the two existing call sites. This will enable this code to be reused for tablets. Refs #5232
Diffstat (limited to 'include/sway/input/seat.h')
-rw-r--r--include/sway/input/seat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h
index 6d7495dd..ad7cac75 100644
--- a/include/sway/input/seat.h
+++ b/include/sway/input/seat.h
@@ -220,6 +220,9 @@ bool seat_is_input_allowed(struct sway_seat *seat, struct wlr_surface *surface);
220 220
221void drag_icon_update_position(struct sway_drag_icon *icon); 221void drag_icon_update_position(struct sway_drag_icon *icon);
222 222
223enum wlr_edges find_resize_edge(struct sway_container *cont,
224 struct wlr_surface *surface, struct sway_cursor *cursor);
225
223void seatop_begin_default(struct sway_seat *seat); 226void seatop_begin_default(struct sway_seat *seat);
224 227
225void seatop_begin_down(struct sway_seat *seat, struct sway_container *con, 228void seatop_begin_down(struct sway_seat *seat, struct sway_container *con,