diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-02-13 14:32:47 -0500 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-02-13 14:32:47 -0500 |
commit | 9b8249c350a499bb65e50741e8a45e5575ac7d18 (patch) | |
tree | fb4135e4bf815cc1f5a5771a93ac81aeb736cd1e /sway/commands/tiling_drag_threshold.c | |
parent | d168d65f2c0297bf5662c0f48f5f53705e54a376 (diff) |
seatop_move_tiling: use tab/stack parent not self
When moving a descendant of a tabbed or stacked container, it is possible
for the target node to be the node being moved. This causes a segfault in
`handle_finish` since the node will be detached and then attempted to be
attached to it own parent, which is NULL due to the detach. In this
case, the target node should not be set to the node being moved, but the
parent of the node. This also allows for a descendant of a tabbed or
stacked container to be dragged out of the tabs/stacks and to be a
sibling of the tabbbed/stacked container, which was not previously
possible.
Diffstat (limited to 'sway/commands/tiling_drag_threshold.c')
0 files changed, 0 insertions, 0 deletions