aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-09-11 19:50:00 -0400
committerLibravatar GitHub <noreply@github.com>2018-09-11 19:50:00 -0400
commitd8a96c9e4d758ac6659ed5c39fd2a86bc29d35bc (patch)
treeb9f066aca293dbf1aa21222d284acf7cbace73cc /sway/tree/view.c
parentMerge pull request #2618 from RyanDwyer/tiling-drag (diff)
parentDon't use handler_context in view_unmap (diff)
downloadsway-d8a96c9e4d758ac6659ed5c39fd2a86bc29d35bc.tar.gz
sway-d8a96c9e4d758ac6659ed5c39fd2a86bc29d35bc.tar.zst
sway-d8a96c9e4d758ac6659ed5c39fd2a86bc29d35bc.zip
Merge pull request #2621 from emersion/fix-unmap-segfault
Don't use handler_context in view_unmap
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index d4ffa06b..d02abf30 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -583,7 +583,10 @@ void view_unmap(struct sway_view *view) {
583 workspace_detect_urgent(ws); 583 workspace_detect_urgent(ws);
584 } 584 }
585 585
586 cursor_send_pointer_motion(config->handler_context.seat->cursor, 0, true); 586 struct sway_seat *seat;
587 wl_list_for_each(seat, &input_manager->seats, link) {
588 cursor_send_pointer_motion(seat->cursor, 0, true);
589 }
587 590
588 transaction_commit_dirty(); 591 transaction_commit_dirty();
589 view->surface = NULL; 592 view->surface = NULL;