diff options
author | Ronan Pigott <ronan@rjp.ie> | 2022-11-30 12:02:10 -0700 |
---|---|---|
committer | Ronan Pigott <ronan@rjp.ie> | 2023-02-05 00:53:47 -0700 |
commit | 842609da6432c054c19c8d10f1660085653daa64 (patch) | |
tree | 679a42fc407a1e11ef1f29daa755489202fcf54e /sway/xdg_activation_v1.c | |
parent | ci: install hwdata-dev on Alpine (diff) | |
download | sway-842609da6432c054c19c8d10f1660085653daa64.tar.gz sway-842609da6432c054c19c8d10f1660085653daa64.tar.zst sway-842609da6432c054c19c8d10f1660085653daa64.zip |
view: make request_activate take a seat
This way we can move focus on the same seat an activation token
originates from.
Diffstat (limited to 'sway/xdg_activation_v1.c')
-rw-r--r-- | sway/xdg_activation_v1.c | 7 |
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 | } |