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
commitc44f241bfb9e7438081fea98d3f3a652c2e051af (patch)
tree75cb3af1922edc274cd5d7a35d68810dbe86ffe4 /include
parent3de28948b2d41d423d86ed3b5f7b117a10e70354 (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.
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;