diff options
author | Tudor Brindus <me@tbrindus.ca> | 2020-06-04 15:58:17 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-06-07 10:46:14 +0200 |
commit | ce494a5811ddd01b09295ae1a91596f74ee1823c (patch) | |
tree | 95236006998789a0adc707e6869fa1096fc506d6 /sway/input/seatop_default.c | |
parent | 7dec1f839847bf594ef9d62222380cbcc7ff8429 (diff) |
input/tablet: allow moving tiling tablet v2 surfaces by pen input
Closes #5293.
Diffstat (limited to 'sway/input/seatop_default.c')
-rw-r--r-- | sway/input/seatop_default.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c index 46595fdd..3ef816fd 100644 --- a/sway/input/seatop_default.c +++ b/sway/input/seatop_default.c @@ -235,6 +235,13 @@ static void handle_tablet_tool_tip(struct sway_seat *seat, return; } + // Handle moving a tiling container + if (config->tiling_drag && mod_pressed && !is_floating_or_child && + cont->fullscreen_mode == FULLSCREEN_NONE) { + seatop_begin_move_tiling(seat, cont); + return; + } + seatop_begin_down(seat, node->sway_container, time_msec, sx, sy); } |