aboutsummaryrefslogtreecommitdiffstats
path: root/sway/server.c
diff options
context:
space:
mode:
authorLibravatar Pascal Pascher <aur@clouddrop.de>2018-07-24 23:37:41 +0200
committerLibravatar Pascal Pascher <aur@clouddrop.de>2018-07-24 23:37:41 +0200
commit2bf893248a94c7f70a9557aad4a8228731041eeb (patch)
treeec86137e1b5881151b20917f311ecce3d24fba8f /sway/server.c
parentAdded meson option "enable_xwayland" (default: true) to enable/disable xwayla... (diff)
downloadsway-2bf893248a94c7f70a9557aad4a8228731041eeb.tar.gz
sway-2bf893248a94c7f70a9557aad4a8228731041eeb.tar.zst
sway-2bf893248a94c7f70a9557aad4a8228731041eeb.zip
style fixes, exclude sway/desctop/xwayland.c when enable_xwayland: false
Diffstat (limited to 'sway/server.c')
-rw-r--r--sway/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/server.c b/sway/server.c
index 90f25dbc..1521597f 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -83,7 +83,7 @@ bool server_init(struct sway_server *server) {
83 server->xdg_shell_surface.notify = handle_xdg_shell_surface; 83 server->xdg_shell_surface.notify = handle_xdg_shell_surface;
84 84
85 // TODO make xwayland optional 85 // TODO make xwayland optional
86 #ifdef HAVE_XWAYLAND 86#ifdef HAVE_XWAYLAND
87 server->xwayland.wlr_xwayland = 87 server->xwayland.wlr_xwayland =
88 wlr_xwayland_create(server->wl_display, server->compositor, true); 88 wlr_xwayland_create(server->wl_display, server->compositor, true);
89 wl_signal_add(&server->xwayland.wlr_xwayland->events.new_surface, 89 wl_signal_add(&server->xwayland.wlr_xwayland->events.new_surface,
@@ -104,7 +104,7 @@ bool server_init(struct sway_server *server) {
104 image->width * 4, image->width, image->height, image->hotspot_x, 104 image->width * 4, image->width, image->height, image->hotspot_x,
105 image->hotspot_y); 105 image->hotspot_y);
106 } 106 }
107 #endif 107#endif
108 108
109 // TODO: Integration with sway borders 109 // TODO: Integration with sway borders
110 struct wlr_server_decoration_manager *deco_manager = 110 struct wlr_server_decoration_manager *deco_manager =