2017-08-19 15:59:31 +00:00
|
|
|
#ifndef XWAYLAND_INTERNALS_H
|
|
|
|
#define XWAYLAND_INTERNALS_H
|
2017-08-19 19:25:26 +00:00
|
|
|
#include <xcb/xcb.h>
|
|
|
|
#include <wayland-server-core.h>
|
|
|
|
#include <wlr/xwayland.h>
|
|
|
|
|
|
|
|
struct wlr_xwm {
|
|
|
|
struct wlr_xwayland *xwayland;
|
|
|
|
struct wl_event_source *event_source;
|
|
|
|
struct wl_listener surface_listener;
|
|
|
|
|
|
|
|
xcb_connection_t *xcb_connection;
|
|
|
|
xcb_screen_t *xcb_screen;
|
|
|
|
};
|
2017-08-19 15:59:31 +00:00
|
|
|
|
|
|
|
void unlink_sockets(int display);
|
|
|
|
int open_display_sockets(int socks[2]);
|
2017-08-19 19:25:26 +00:00
|
|
|
|
|
|
|
void xwm_destroy(struct wlr_xwm *xwm);
|
|
|
|
struct wlr_xwm *xwm_create(struct wlr_xwayland *wlr_xwayland);
|
|
|
|
|
2017-08-19 15:59:31 +00:00
|
|
|
#endif
|