mirror of
https://github.com/swaywm/sway.git
synced 2026-03-24 09:06:16 -04:00
view: make request_activate take a seat
This way we can move focus on the same seat an activation token originates from.
This commit is contained in:
parent
0780d3a465
commit
842609da64
4 changed files with 12 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue