aboutsummaryrefslogtreecommitdiff
path: root/sway/xdg_activation_v1.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/xdg_activation_v1.c')
-rw-r--r--sway/xdg_activation_v1.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sway/xdg_activation_v1.c b/sway/xdg_activation_v1.c
index cc3dcec0..c20e42c1 100644
--- a/sway/xdg_activation_v1.c
+++ b/sway/xdg_activation_v1.c
@@ -31,5 +31,10 @@ void xdg_activation_v1_handle_request_activate(struct wl_listener *listener,
return;
}
- view_request_activate(view);
+ struct wlr_seat *wlr_seat = event->token->seat;
+ // The requesting seat may have been destroyed.
+ if (wlr_seat) {
+ struct sway_seat *seat = wlr_seat->data;
+ view_request_activate(view, seat);
+ }
}