mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
Minor fixes to tiling drag implementation
* Make container_add_sibling's `after` argument a boolean. * Use a constant for drop layout border * Make thickness an int * Add button state check * Move comments in seat_end_move_tiling
This commit is contained in:
parent
df95c61044
commit
679c7eb08c
4 changed files with 19 additions and 15 deletions
|
|
@ -1093,13 +1093,13 @@ void container_insert_child(struct sway_container *parent,
|
|||
}
|
||||
|
||||
void container_add_sibling(struct sway_container *fixed,
|
||||
struct sway_container *active, int side) {
|
||||
struct sway_container *active, bool after) {
|
||||
if (active->workspace) {
|
||||
container_detach(active);
|
||||
}
|
||||
list_t *siblings = container_get_siblings(fixed);
|
||||
int index = list_find(siblings, fixed);
|
||||
list_insert(siblings, index + side, active);
|
||||
list_insert(siblings, index + after, active);
|
||||
active->parent = fixed->parent;
|
||||
active->workspace = fixed->workspace;
|
||||
container_for_each_child(active, set_workspace, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue