Skip to content

Commit

Permalink
input/tablet: allow moving tiling tablet v2 surfaces by pen input
Browse files Browse the repository at this point in the history
Closes swaywm#5293.
  • Loading branch information
Xyene committed Jun 4, 2020
1 parent fc4d599 commit 9122100
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sway/input/seatop_default.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,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);
}
}
Expand Down

0 comments on commit 9122100

Please sign in to comment.