aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/server.h3
-rw-r--r--include/sway/surface.h11
2 files changed, 14 insertions, 0 deletions
diff --git a/include/sway/server.h b/include/sway/server.h
index cd411d3b..5b34852c 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -28,6 +28,8 @@ struct sway_server {
struct wlr_backend *noop_backend;
struct wlr_compositor *compositor;
+ struct wl_listener compositor_new_surface;
+
struct wlr_data_device_manager *data_device_manager;
struct sway_input_manager *input;
@@ -99,6 +101,7 @@ void server_fini(struct sway_server *server);
bool server_start(struct sway_server *server);
void server_run(struct sway_server *server);
+void handle_compositor_new_surface(struct wl_listener *listener, void *data);
void handle_new_output(struct wl_listener *listener, void *data);
void handle_idle_inhibitor_v1(struct wl_listener *listener, void *data);
diff --git a/include/sway/surface.h b/include/sway/surface.h
new file mode 100644
index 00000000..06874af2
--- /dev/null
+++ b/include/sway/surface.h
@@ -0,0 +1,11 @@
+#ifndef _SWAY_SURFACE_H
+#define _SWAY_SURFACE_H
+#include <wlr/types/wlr_surface.h>
+
+struct sway_surface {
+ struct wlr_surface *wlr_surface;
+
+ struct wl_listener destroy;
+};
+
+#endif