mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 12:33:50 +01:00
xdg-activation: fix urgency when the client does not specify a seat
xdg-activation is now too strict in only allowing tokens with a seat to
activate a surface. Clients may rely on this behavior for urgency hints.
The seat argument is still useful in case the client does provide a seat
so we can activate it on the desired seat.
Fixes: 842609da64
(view: make request_activate take a seat, 2022-11-30)
This commit is contained in:
parent
b4ce0a30c1
commit
1b27e8c8fd
@ -33,12 +33,9 @@ void xdg_activation_v1_handle_request_activate(struct wl_listener *listener,
|
||||
}
|
||||
|
||||
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;
|
||||
struct sway_seat *seat = wlr_seat ? wlr_seat->data : NULL;
|
||||
view_request_activate(view, seat);
|
||||
}
|
||||
}
|
||||
|
||||
void xdg_activation_v1_handle_new_token(struct wl_listener *listener, void *data) {
|
||||
struct wlr_xdg_activation_token_v1 *token = data;
|
||||
|
Loading…
Reference in New Issue
Block a user