aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRonan Pigott <ronan@rjp.ie>2024-02-07 16:13:25 -0700
committerSimon Ser <contact@emersion.fr>2024-02-17 14:27:03 +0100
commitd91779d6471c80fadb30955ad713618740cf649e (patch)
tree9d8f152534983d68a897ae40194c226c84c022e1 /include
parent1875e03dd062f8eda768336a8f82113b49183d7b (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;