aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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 {
28 struct wlr_backend *noop_backend; 28 struct wlr_backend *noop_backend;
29 29
30 struct wlr_compositor *compositor; 30 struct wlr_compositor *compositor;
31 struct wl_listener compositor_new_surface;
32
31 struct wlr_data_device_manager *data_device_manager; 33 struct wlr_data_device_manager *data_device_manager;
32 34
33 struct sway_input_manager *input; 35 struct sway_input_manager *input;
@@ -99,6 +101,7 @@ void server_fini(struct sway_server *server);
99bool server_start(struct sway_server *server); 101bool server_start(struct sway_server *server);
100void server_run(struct sway_server *server); 102void server_run(struct sway_server *server);
101 103
104void handle_compositor_new_surface(struct wl_listener *listener, void *data);
102void handle_new_output(struct wl_listener *listener, void *data); 105void handle_new_output(struct wl_listener *listener, void *data);
103 106
104void handle_idle_inhibitor_v1(struct wl_listener *listener, void *data); 107void 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 @@
1#ifndef _SWAY_SURFACE_H
2#define _SWAY_SURFACE_H
3#include <wlr/types/wlr_surface.h>
4
5struct sway_surface {
6 struct wlr_surface *wlr_surface;
7
8 struct wl_listener destroy;
9};
10
11#endif