mirror of
https://github.com/swaywm/sway.git
synced 2025-11-03 09:01:43 -05:00
Make mouse drag in tiled mode swap containers if no edge is selected
Now the highlighted center area of containers triggers a swap action instead of moving around the containers.
This commit is contained in:
parent
c9cb5ced7f
commit
538b36c0e2
3 changed files with 18 additions and 9 deletions
|
|
@ -84,8 +84,7 @@ static void swap_focus(struct sway_container *con1,
|
|||
}
|
||||
}
|
||||
|
||||
static void container_swap(struct sway_container *con1,
|
||||
struct sway_container *con2) {
|
||||
void container_swap(struct sway_container *con1, struct sway_container *con2) {
|
||||
if (!sway_assert(con1 && con2, "Cannot swap with nothing")) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue