aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-06-25 11:46:57 +0200
committerKenny Levinsen <kl@kl.wtf>2021-07-27 00:18:11 +0200
commit770a561bcef11a4991404169c50414ae867c2528 (patch)
tree8787ec260db101a763b2679005f1068f6fe71f8f /include
parent4b316a38230079dbe0221d10934caf3134c086d1 (diff)
xwayland: embed wlr_xwayland_server_options in server struct
As more options are added, more fields will be duplicated. Let's just embed the struct in wlr_xwayland_server so that we don't need to keep both in sync.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/xwayland.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/wlr/xwayland.h b/include/wlr/xwayland.h
index 6a83e08a..1f0e5019 100644
--- a/include/wlr/xwayland.h
+++ b/include/wlr/xwayland.h
@@ -19,6 +19,11 @@
struct wlr_xwm;
struct wlr_xwayland_cursor;
+struct wlr_xwayland_server_options {
+ bool lazy;
+ bool enable_wm;
+};
+
struct wlr_xwayland_server {
pid_t pid;
struct wl_client *client;
@@ -33,8 +38,7 @@ struct wlr_xwayland_server {
char display_name[16];
int x_fd[2];
struct wl_event_source *x_fd_read_event[2];
- bool lazy;
- bool enable_wm;
+ struct wlr_xwayland_server_options options;
struct wl_display *wl_display;
@@ -49,11 +53,6 @@ struct wlr_xwayland_server {
void *data;
};
-struct wlr_xwayland_server_options {
- bool lazy;
- bool enable_wm;
-};
-
struct wlr_xwayland_server_ready_event {
struct wlr_xwayland_server *server;
int wm_fd;