aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/seat.h
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-15 16:47:02 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-18 09:18:32 +1000
commita36625a482585e86d465df1eaa3669c1c4390a20 (patch)
treefcc64fb33bea1347c634b8a2363cdbc13b93ab4b /include/sway/input/seat.h
parentMerge pull request #2472 from RyanDwyer/refactor-seat-get-focus (diff)
downloadsway-a36625a482585e86d465df1eaa3669c1c4390a20.tar.gz
sway-a36625a482585e86d465df1eaa3669c1c4390a20.tar.zst
sway-a36625a482585e86d465df1eaa3669c1c4390a20.zip
Implement mousedown operation
This allows you to move the cursor off the surface while dragging its scrollbar.
Diffstat (limited to 'include/sway/input/seat.h')
-rw-r--r--include/sway/input/seat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h
index 9dfb0714..fb03b609 100644
--- a/include/sway/input/seat.h
+++ b/include/sway/input/seat.h
@@ -56,6 +56,7 @@ struct sway_seat {
56 // Operations (drag and resize) 56 // Operations (drag and resize)
57 enum { 57 enum {
58 OP_NONE, 58 OP_NONE,
59 OP_MOUSEDOWN,
59 OP_MOVE, 60 OP_MOVE,
60 OP_RESIZE_FLOATING, 61 OP_RESIZE_FLOATING,
61 OP_RESIZE_TILING, 62 OP_RESIZE_TILING,
@@ -157,6 +158,9 @@ bool seat_is_input_allowed(struct sway_seat *seat, struct wlr_surface *surface);
157 158
158void drag_icon_update_position(struct sway_drag_icon *icon); 159void drag_icon_update_position(struct sway_drag_icon *icon);
159 160
161void seat_begin_mousedown(struct sway_seat *seat, struct sway_container *con,
162 uint32_t button, double sx, double sy);
163
160void seat_begin_move(struct sway_seat *seat, struct sway_container *con, 164void seat_begin_move(struct sway_seat *seat, struct sway_container *con,
161 uint32_t button); 165 uint32_t button);
162 166