From a36625a482585e86d465df1eaa3669c1c4390a20 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Wed, 15 Aug 2018 16:47:02 +1000 Subject: Implement mousedown operation This allows you to move the cursor off the surface while dragging its scrollbar. --- include/sway/input/seat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/sway/input/seat.h') 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 { // Operations (drag and resize) enum { OP_NONE, + OP_MOUSEDOWN, OP_MOVE, OP_RESIZE_FLOATING, OP_RESIZE_TILING, @@ -157,6 +158,9 @@ bool seat_is_input_allowed(struct sway_seat *seat, struct wlr_surface *surface); void drag_icon_update_position(struct sway_drag_icon *icon); +void seat_begin_mousedown(struct sway_seat *seat, struct sway_container *con, + uint32_t button, double sx, double sy); + void seat_begin_move(struct sway_seat *seat, struct sway_container *con, uint32_t button); -- cgit v1.2.3-54-g00ecf