mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
Implement mousedown operation
This allows you to move the cursor off the surface while dragging its scrollbar.
This commit is contained in:
parent
db4b4935b3
commit
a36625a482
3 changed files with 50 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue