aboutsummaryrefslogtreecommitdiff
path: root/sway/xdg_activation_v1.c
AgeCommit message (Collapse)Author
2024-02-17xdg-activation: distinguish activation and urgency requestsAleksei Bavshin
Check if the app that requested a token has provided a valid input serial and a focused surface. Downgrade activation request to urgency otherwise. This is mostly in line with what other Wayland compositors decided to do, and offers a better security than the original logic.
2024-02-17launcher: track the seat in the launcher ctxRonan Pigott
This is a more suitable place to track the requesting seat, since we are able to respond appropriately to destroy notifications.
2024-02-15Drop unnecessary includes from sway/server.hSimon Ser
2023-06-02chore: chase wlroots map logic unificationKirill Primak
2023-02-09xdg-activation: fix urgency when the client does not specify a seatRonan Pigott
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)
2023-02-05launcher: support external launcher tokensRonan Pigott
2023-02-05view: make request_activate take a seatRonan Pigott
This way we can move focus on the same seat an activation token originates from.
2023-02-02Convert to *_try_from_wlr_surface()Simon Ser
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3991
2022-11-26launcher: export xdga tokens and use them for workspace matchingRonan Pigott
2022-09-13Fix crash in xdg_activation_v1.cFilip SzczepaƄski
wlr_xdg_surface_from_wlr_surface() can return a NULL pointer, so check for NULL before dereferencing it.
2021-06-02Implement xdg-activation-v1Simon Ser
See https://github.com/swaywm/wlroots/pull/2718.