diff options
author | 2023-02-09 11:39:46 -0700 | |
---|---|---|
committer | 2023-02-09 20:02:32 +0100 | |
commit | 1b27e8c8fdc413a061e8b003bcabfb7b789c6a90 (patch) | |
tree | ff11070882f678af08535366435db49f8d6e4f02 /sway | |
parent | Use wlr_linux_dmabuf_feedback_v1_init_with_options() (diff) | |
download | sway-1b27e8c8fdc413a061e8b003bcabfb7b789c6a90.tar.gz sway-1b27e8c8fdc413a061e8b003bcabfb7b789c6a90.tar.zst sway-1b27e8c8fdc413a061e8b003bcabfb7b789c6a90.zip |
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 (limited to 'sway')
-rw-r--r-- | sway/xdg_activation_v1.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sway/xdg_activation_v1.c b/sway/xdg_activation_v1.c index 614f51cd..e97989c8 100644 --- 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, | |||
33 | } | 33 | } |
34 | 34 | ||
35 | struct wlr_seat *wlr_seat = event->token->seat; | 35 | struct wlr_seat *wlr_seat = event->token->seat; |
36 | // The requesting seat may have been destroyed. | 36 | struct sway_seat *seat = wlr_seat ? wlr_seat->data : NULL; |
37 | if (wlr_seat) { | 37 | view_request_activate(view, seat); |
38 | struct sway_seat *seat = wlr_seat->data; | ||
39 | view_request_activate(view, seat); | ||
40 | } | ||
41 | } | 38 | } |
42 | 39 | ||
43 | void xdg_activation_v1_handle_new_token(struct wl_listener *listener, void *data) { | 40 | void xdg_activation_v1_handle_new_token(struct wl_listener *listener, void *data) { |