aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/transaction.c
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2019-02-12 22:55:23 +0100
committerLibravatar emersion <contact@emersion.fr>2019-02-12 22:57:23 +0100
commit97c89b24b8e4a8e091f6974333457deb73b7800f (patch)
treef6e1e3686921968161fdd5091667b2794f6ca184 /sway/desktop/transaction.c
parentworkspace_get_initial_output: handle focused layer (diff)
downloadsway-97c89b24b8e4a8e091f6974333457deb73b7800f.tar.gz
sway-97c89b24b8e4a8e091f6974333457deb73b7800f.tar.zst
sway-97c89b24b8e4a8e091f6974333457deb73b7800f.zip
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.c9
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) {
314 node->instruction = NULL; 314 node->instruction = NULL;
315 } 315 }
316 316
317 if (root->outputs->length) { 317 cursor_rebase_all();
318 struct sway_seat *seat;
319 wl_list_for_each(seat, &server.input->seats, link) {
320 if (!seat_doing_seatop(seat)) {
321 cursor_rebase(seat->cursor);
322 }
323 }
324 }
325} 318}
326 319
327static void transaction_commit(struct sway_transaction *transaction); 320static void transaction_commit(struct sway_transaction *transaction);