sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 1b27e8c8fdc413a061e8b003bcabfb7b789c6a90
parent b4ce0a30c1d8d7f2af82f4da5858c1379f8399a1
Author: Ronan Pigott <ronan@rjp.ie>
Date:   Thu,  9 Feb 2023 11:39:46 -0700

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: 842609da6432 (view: make request_activate take a seat, 2022-11-30)

Diffstat:
Msway/xdg_activation_v1.c | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/sway/xdg_activation_v1.c b/sway/xdg_activation_v1.c @@ -33,11 +33,8 @@ 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; - view_request_activate(view, seat); - } + 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) {