From 625cf6df3b5cb113a2b16fb52063f997831b69dd Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Tue, 3 May 2022 21:53:30 -0400 Subject: [PATCH] transaction: Rebase cursor on transaction finish We need to make sure that we rebase the cursor after the scene graph is arranged otherwise the mouse will rebase on the old state instead. --- sway/desktop/transaction.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c index 71a0f0256..79444cdc3 100644 --- a/sway/desktop/transaction.c +++ b/sway/desktop/transaction.c @@ -732,8 +732,6 @@ static void transaction_apply(struct sway_transaction *transaction) { node->instruction = NULL; } - - cursor_rebase_all(); } static void transaction_commit_pending(void); @@ -747,6 +745,7 @@ static void transaction_progress(void) { } transaction_apply(server.queued_transaction); arrange_root(root); + cursor_rebase_all(); transaction_destroy(server.queued_transaction); server.queued_transaction = NULL;