From ce494a5811ddd01b09295ae1a91596f74ee1823c Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Thu, 4 Jun 2020 15:58:17 -0400 Subject: input/tablet: allow moving tiling tablet v2 surfaces by pen input Closes #5293. --- sway/input/seatop_default.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sway/input/seatop_default.c') 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); } -- cgit v1.2.3