aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2024-02-07 16:13:25 -0700
committerFurkan Sahin <furkan-dev@proton.me>2024-02-07 16:13:25 -0700
commit9493c53cfcec073fcc74b86aac52f69bc4f53da5 (patch)
tree9d8f152534983d68a897ae40194c226c84c022e1 /include
parentf32b4333e0042186fc5fce8eb3c860dd12da4cf3 (diff)
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. (cherry picked from commit f6d22f8e6886edfeca3ecbb695b02079e81ce360)
Diffstat (limited to 'include')
-rw-r--r--include/sway/desktop/launcher.h3
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 @@
#include <stdlib.h>
#include <wayland-server-core.h>
+#include "sway/input/seat.h"
struct launcher_ctx {
pid_t pid;
char *fallback_name;
struct wlr_xdg_activation_token_v1 *token;
struct wl_listener token_destroy;
+ struct sway_seat *seat;
+ struct wl_listener seat_destroy;
bool activated;