aboutsummaryrefslogtreecommitdiffstats
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,
31 return; 31 return;
32 } 32 }
33 33
34 view_request_activate(view); 34 struct wlr_seat *wlr_seat = event->token->seat;
35 // The requesting seat may have been destroyed.
36 if (wlr_seat) {
37 struct sway_seat *seat = wlr_seat->data;
38 view_request_activate(view, seat);
39 }
35} 40}