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 Drew DeVault <sir@cmpwn.com>2019-02-18 15:11:48 -0500
commit06e03ed8784fe2048e48909af47c80a55d201a81 (patch)
treef6e1e3686921968161fdd5091667b2794f6ca184 /sway/desktop/transaction.c
parentworkspace_get_initial_output: handle focused layer (diff)
downloadsway-06e03ed8784fe2048e48909af47c80a55d201a81.tar.gz
sway-06e03ed8784fe2048e48909af47c80a55d201a81.tar.zst
sway-06e03ed8784fe2048e48909af47c80a55d201a81.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);