This commit is contained in:
llyyr 2026-04-12 16:05:05 +01:00 committed by GitHub
commit 29020fbf12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +59,7 @@ static void transaction_destroy(struct sway_transaction *transaction) {
if (node->instruction == instruction) {
node->instruction = NULL;
}
if (node->destroying && node->ntxnrefs == 0) {
if (node->destroying && node->ntxnrefs == 0 && !node->dirty) {
switch (node->type) {
case N_ROOT:
sway_assert(false, "Never reached");