diff options
author | emersion <[email protected]> | 2019-02-12 22:55:23 +0100 |
---|---|---|
committer | emersion <[email protected]> | 2019-02-12 22:57:23 +0100 |
commit | 97c89b24b8e4a8e091f6974333457deb73b7800f (patch) | |
tree | f6e1e3686921968161fdd5091667b2794f6ca184 /sway/desktop/transaction.c | |
parent | fb4f29289fd8d1f94975e64fded6657222ed5390 (diff) |
Rebase cursor when a layer surface maps
Also removes an extraneous arrange_outputs call, it's already called if
necessary in arrange_layers.
Updates https://github.com/swaywm/sway/issues/3080
Diffstat (limited to 'sway/desktop/transaction.c')
-rw-r--r-- | sway/desktop/transaction.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c index e0c3a5d1..4098ed22 100644 --- a/sway/desktop/transaction.c +++ b/sway/desktop/transaction.c @@ -314,14 +314,7 @@ static void transaction_apply(struct sway_transaction *transaction) { node->instruction = NULL; } - if (root->outputs->length) { - struct sway_seat *seat; - wl_list_for_each(seat, &server.input->seats, link) { - if (!seat_doing_seatop(seat)) { - cursor_rebase(seat->cursor); - } - } - } + cursor_rebase_all(); } static void transaction_commit(struct sway_transaction *transaction); |