mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
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:
parent
90df29dde3
commit
625cf6df3b
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue