From 8b263429cfd986d7f78e6e448790d70bd58a40c1 Mon Sep 17 00:00:00 2001 From: emersion Date: Tue, 11 Sep 2018 19:34:58 +0200 Subject: [PATCH] Don't use handler_context in view_unmap --- sway/tree/view.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sway/tree/view.c b/sway/tree/view.c index 65ac8b32..bdf4e32a 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -583,7 +583,10 @@ void view_unmap(struct sway_view *view) { workspace_detect_urgent(ws); } - cursor_send_pointer_motion(config->handler_context.seat->cursor, 0, true); + struct sway_seat *seat; + wl_list_for_each(seat, &input_manager->seats, link) { + cursor_send_pointer_motion(seat->cursor, 0, true); + } transaction_commit_dirty(); view->surface = NULL;