mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 00:16:22 +01:00
Merge pull request #2768 from RyanDwyer/fix-flatten-crash
Fix crash when flattening container after moving
This commit is contained in:
commit
c1f09939ae
1 changed files with 5 additions and 0 deletions
|
@ -157,6 +157,11 @@ static void handle_seat_node_destroy(struct wl_listener *listener, void *data) {
|
|||
|
||||
seat_node_destroy(seat_node);
|
||||
|
||||
if (!parent) {
|
||||
// Destroying a container that is no longer in the tree
|
||||
return;
|
||||
}
|
||||
|
||||
// Find new focus_inactive (ie. sibling, or workspace if no siblings left)
|
||||
struct sway_node *next_focus = NULL;
|
||||
while (next_focus == NULL) {
|
||||
|
|
Loading…
Reference in a new issue