diff options
| author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-09-11 21:34:21 +1000 | 
|---|---|---|
| committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-09-11 21:34:21 +1000 | 
| commit | 8bb40c24c7b045df0d43e9f22c096d1473f6f9f6 (patch) | |
| tree | 0c4dbac1173f92337e2cff63d45c7d8fe7a3557f /include/sway/input/seat.h | |
| parent | ec9c4de564286d3795dd204e2c0a69b10f7572be (diff) | |
| download | sway-8bb40c24c7b045df0d43e9f22c096d1473f6f9f6.tar.xz | |
Implement tiling drag
Hold floating_modifier and drag a tiling view to a new location.
Diffstat (limited to 'include/sway/input/seat.h')
| -rw-r--r-- | include/sway/input/seat.h | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index 1ae34be5..e006faba 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h @@ -39,6 +39,7 @@ enum sway_seat_operation {  	OP_NONE,  	OP_DOWN,  	OP_MOVE_FLOATING, +	OP_MOVE_TILING,  	OP_RESIZE_FLOATING,  	OP_RESIZE_TILING,  }; @@ -64,6 +65,9 @@ struct sway_seat {  	// Operations (drag and resize)  	enum sway_seat_operation operation;  	struct sway_container *op_container; +	struct sway_node *op_target_node; // target for tiling move +	enum wlr_edges op_target_edge; +	struct wlr_box op_drop_box;  	enum wlr_edges op_resize_edge;  	uint32_t op_button;  	bool op_resize_preserve_ratio; @@ -175,6 +179,9 @@ void seat_begin_down(struct sway_seat *seat, struct sway_container *con,  void seat_begin_move_floating(struct sway_seat *seat,  		struct sway_container *con, uint32_t button); +void seat_begin_move_tiling(struct sway_seat *seat, +		struct sway_container *con, uint32_t button); +  void seat_begin_resize_floating(struct sway_seat *seat,  		struct sway_container *con, uint32_t button, enum wlr_edges edge);  | 
