Documentation for <wlr/xwayland/server.h>

Back to index

Table of contents

struct wlr_xwayland_server

struct wlr_xwayland_server {
	pid_t pid;
	struct wl_client *client;
	struct wl_event_source *pipe_source;
	int wm_fd[], wl_fd[];
	time_t server_start;
	/* Anything above display is reset on Xwayland restart, rest is conserved */
	int display;
	char display_name[];
	int x_fd[];
	struct wl_event_source *x_fd_read_event[];
	struct wlr_xwayland_server_options options;
	struct wl_display *wl_display;
	struct wl_event_source *idle_source;
	struct {
		struct wl_signal start;
		struct wl_signal ready;
		struct wl_signal destroy;
	} events;
	struct wl_listener client_destroy;
	struct wl_listener display_destroy;
	void *data;


struct wlr_xwayland_server *wlr_xwayland_server_create(​struct wl_display *display, struct wlr_xwayland_server_options *options);


void wlr_xwayland_server_destroy(​struct wlr_xwayland_server *server);

struct wlr_xwayland_server_options

struct wlr_xwayland_server_options {
	bool lazy;
	bool enable_wm;
	bool no_touch_pointer_emulation;
	bool force_xrandr_emulation;
	int terminate_delay; // in seconds, 0 to terminate immediately

struct wlr_xwayland_server_ready_event

struct wlr_xwayland_server_ready_event {
	struct wlr_xwayland_server *server;
	int wm_fd;