Revert "sway/tree: Simplify sway_node teardown"

This reverts commit e28e6484e8.

This change tried to remove nodes from all points of reference to allow
immediate destruction. However, it missed things like the children lists
cloned by transaction states of parent nodes.

Adding all that extra cleanup would not be in the spirit of a PR
claiming to simplify teardown. Let's wait for someone to come up with a
cleaner approach instead.

Fixes: https://github.com/swaywm/sway/pull/8738
This commit is contained in:
Kenny Levinsen 2025-06-28 10:51:51 +02:00 committed by Simon Ser
parent 0cd45d4ad2
commit 56f2db062d
16 changed files with 149 additions and 125 deletions

View file

@ -23,7 +23,6 @@
struct sway_transaction_instruction;
struct sway_view;
struct sway_node;
/**
* Find all dirty containers, create and commit a transaction containing them,
@ -31,11 +30,6 @@ struct sway_node;
*/
void transaction_commit_dirty(void);
/**
* Remove a node that will be destroyed from transactions and dirty node lists.
*/
void transaction_remove_node(struct sway_node *node);
/*
* Same as transaction_commit_dirty, but signalling that this is a
* client-initiated change has already taken effect.