diff options
author | Ronan Pigott <ronan@rjp.ie> | 2024-02-07 16:13:25 -0700 |
---|---|---|
committer | Ronan Pigott <ronan@rjp.ie> | 2024-02-17 00:54:30 -0700 |
commit | f6d22f8e6886edfeca3ecbb695b02079e81ce360 (patch) | |
tree | 75cb3af1922edc274cd5d7a35d68810dbe86ffe4 /include | |
parent | Drop unnecessary includes from sway/server.h (diff) | |
download | sway-f6d22f8e6886edfeca3ecbb695b02079e81ce360.tar.gz sway-f6d22f8e6886edfeca3ecbb695b02079e81ce360.tar.zst sway-f6d22f8e6886edfeca3ecbb695b02079e81ce360.zip |
launcher: track the seat in the launcher ctx
This is a more suitable place to track the requesting seat, since we are
able to respond appropriately to destroy notifications.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/desktop/launcher.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/desktop/launcher.h b/include/sway/desktop/launcher.h index b7716e82..ad465a9e 100644 --- a/include/sway/desktop/launcher.h +++ b/include/sway/desktop/launcher.h | |||
@@ -3,12 +3,15 @@ | |||
3 | 3 | ||
4 | #include <stdlib.h> | 4 | #include <stdlib.h> |
5 | #include <wayland-server-core.h> | 5 | #include <wayland-server-core.h> |
6 | #include "sway/input/seat.h" | ||
6 | 7 | ||
7 | struct launcher_ctx { | 8 | struct launcher_ctx { |
8 | pid_t pid; | 9 | pid_t pid; |
9 | char *fallback_name; | 10 | char *fallback_name; |
10 | struct wlr_xdg_activation_token_v1 *token; | 11 | struct wlr_xdg_activation_token_v1 *token; |
11 | struct wl_listener token_destroy; | 12 | struct wl_listener token_destroy; |
13 | struct sway_seat *seat; | ||
14 | struct wl_listener seat_destroy; | ||
12 | 15 | ||
13 | bool activated; | 16 | bool activated; |
14 | 17 | ||