Initial (awful) pass on xdg shell support

This commit is contained in:
Drew DeVault 2017-11-11 18:06:50 -05:00
parent 1efd5f819f
commit 0c8491f7d0
8 changed files with 223 additions and 37 deletions

View file

@ -5,6 +5,7 @@
#include <wlr/backend.h>
#include <wlr/backend/session.h>
#include <wlr/types/wlr_data_device_manager.h>
#include <wlr/types/wlr_xdg_shell_v6.h>
#include <wlr/render.h>
// TODO WLR: make Xwayland optional
#include <wlr/xwayland.h>
@ -24,6 +25,9 @@ struct sway_server {
struct wl_listener output_add;
struct wl_listener output_remove;
struct wl_listener output_frame;
struct wlr_xdg_shell_v6 *xdg_shell_v6;
struct wl_listener xdg_shell_v6_surface;
};
struct sway_server server;
@ -35,4 +39,6 @@ void server_run(struct sway_server *server);
void output_add_notify(struct wl_listener *listener, void *data);
void output_remove_notify(struct wl_listener *listener, void *data);
void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data);
#endif