aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-04-14 00:27:47 -0400
committerSimon Ser <contact@emersion.fr>2019-04-14 12:41:59 +0300
commit6961bf2e4ce2c116e41a8db158691f6c993707ce (patch)
treea381146599a5f19e565006cafeb23edc04247d2b /include/sway
parent8c69da11bbe70caa2f5db1665e9d60387604c5e4 (diff)
downloadsway-6961bf2e4ce2c116e41a8db158691f6c993707ce.tar.xz
Spawn swaynag as a wayland client
This spawns swaynag as a wayland client similar to how swaybar and swaybg are already done
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/swaynag.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/sway/swaynag.h b/include/sway/swaynag.h
index 5a178739..74d9ea18 100644
--- a/include/sway/swaynag.h
+++ b/include/sway/swaynag.h
@@ -1,9 +1,12 @@
#ifndef _SWAY_SWAYNAG_H
#define _SWAY_SWAYNAG_H
+#include <wayland-server-core.h>
struct swaynag_instance {
+ struct wl_client *client;
+ struct wl_listener client_destroy;
+
const char *args;
- pid_t pid;
int fd[2];
bool detailed;
};
@@ -15,9 +18,6 @@ struct swaynag_instance {
bool swaynag_spawn(const char *swaynag_command,
struct swaynag_instance *swaynag);
-// Kill the swaynag instance
-void swaynag_kill(struct swaynag_instance *swaynag);
-
// Write a log message to swaynag->fd[1]. This will fail when swaynag->detailed
// is false.
void swaynag_log(const char *swaynag_command, struct swaynag_instance *swaynag,