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.
This commit is contained in:
Alexander Orzechowski 2022-05-03 21:53:30 -04:00 committed by Kirill Primak
parent 90df29dde3
commit 625cf6df3b

View file

@ -732,8 +732,6 @@ static void transaction_apply(struct sway_transaction *transaction) {
node->instruction = NULL; node->instruction = NULL;
} }
cursor_rebase_all();
} }
static void transaction_commit_pending(void); static void transaction_commit_pending(void);
@ -747,6 +745,7 @@ static void transaction_progress(void) {
} }
transaction_apply(server.queued_transaction); transaction_apply(server.queued_transaction);
arrange_root(root); arrange_root(root);
cursor_rebase_all();
transaction_destroy(server.queued_transaction); transaction_destroy(server.queued_transaction);
server.queued_transaction = NULL; server.queued_transaction = NULL;