aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/xwayland.h
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-05-08 23:04:26 +0100
committerGitHub <noreply@github.com>2018-05-08 23:04:26 +0100
commit8e831cd416e2eb0c47bbd097422822a0c8888459 (patch)
treed4e8efe946a18a6940ecfb7471a7fa203a5f6124 /include/wlr/xwayland.h
parentc5c5747060312817c025eab5cdcec8508232dde1 (diff)
parent6936be984fbeca83feae96d92bc8fd1d2b0ec4af (diff)
Merge pull request #959 from VincentVanlaer/xwayland-lazy
Add the option to start Xwayland only when a client connects
Diffstat (limited to 'include/wlr/xwayland.h')
-rw-r--r--include/wlr/xwayland.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/include/wlr/xwayland.h b/include/wlr/xwayland.h
index 53c777d7..3507e547 100644
--- a/include/wlr/xwayland.h
+++ b/include/wlr/xwayland.h
@@ -13,20 +13,26 @@ struct wlr_xwayland_cursor;
struct wlr_xwayland {
pid_t pid;
- int display;
- int x_fd[2], wl_fd[2], wm_fd[2];
struct wl_client *client;
- struct wl_display *wl_display;
- struct wlr_compositor *compositor;
- time_t server_start;
-
struct wl_event_source *sigusr1_source;
struct wl_listener client_destroy;
struct wl_listener display_destroy;
struct wlr_xwm *xwm;
struct wlr_xwayland_cursor *cursor;
+ int wm_fd[2], wl_fd[2];
+
+ time_t server_start;
- /* Anything above seat is reset on Xwayland restart, rest is conserved */
+ /* Anything above display is reset on Xwayland restart, rest is conserved */
+
+ int display;
+ int x_fd[2];
+ struct wl_event_source *x_fd_read_event[2];
+
+ bool lazy;
+
+ struct wl_display *wl_display;
+ struct wlr_compositor *compositor;
struct wlr_seat *seat;
struct wl_listener seat_destroy;
@@ -169,7 +175,7 @@ struct wlr_xwayland_resize_event {
};
struct wlr_xwayland *wlr_xwayland_create(struct wl_display *wl_display,
- struct wlr_compositor *compositor);
+ struct wlr_compositor *compositor, bool lazy);
void wlr_xwayland_destroy(struct wlr_xwayland *wlr_xwayland);