aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/server.h
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-11-11 18:06:50 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2017-11-11 18:06:50 -0500
commit0c8491f7d0c735299a25f0ab929f5d1e0866b929 (patch)
tree69fc808ce6b8ceda33e8fadcf7cbbc10b892ca00 /include/sway/server.h
parentWire up output frame loop (diff)
downloadsway-0c8491f7d0c735299a25f0ab929f5d1e0866b929.tar.gz
sway-0c8491f7d0c735299a25f0ab929f5d1e0866b929.tar.zst
sway-0c8491f7d0c735299a25f0ab929f5d1e0866b929.zip
Initial (awful) pass on xdg shell support
Diffstat (limited to 'include/sway/server.h')
-rw-r--r--include/sway/server.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sway/server.h b/include/sway/server.h
index 043c1a33..5a8a8d31 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -5,6 +5,7 @@
5#include <wlr/backend.h> 5#include <wlr/backend.h>
6#include <wlr/backend/session.h> 6#include <wlr/backend/session.h>
7#include <wlr/types/wlr_data_device_manager.h> 7#include <wlr/types/wlr_data_device_manager.h>
8#include <wlr/types/wlr_xdg_shell_v6.h>
8#include <wlr/render.h> 9#include <wlr/render.h>
9// TODO WLR: make Xwayland optional 10// TODO WLR: make Xwayland optional
10#include <wlr/xwayland.h> 11#include <wlr/xwayland.h>
@@ -24,6 +25,9 @@ struct sway_server {
24 struct wl_listener output_add; 25 struct wl_listener output_add;
25 struct wl_listener output_remove; 26 struct wl_listener output_remove;
26 struct wl_listener output_frame; 27 struct wl_listener output_frame;
28
29 struct wlr_xdg_shell_v6 *xdg_shell_v6;
30 struct wl_listener xdg_shell_v6_surface;
27}; 31};
28 32
29struct sway_server server; 33struct sway_server server;
@@ -35,4 +39,6 @@ void server_run(struct sway_server *server);
35void output_add_notify(struct wl_listener *listener, void *data); 39void output_add_notify(struct wl_listener *listener, void *data);
36void output_remove_notify(struct wl_listener *listener, void *data); 40void output_remove_notify(struct wl_listener *listener, void *data);
37 41
42void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data);
43
38#endif 44#endif