aboutsummaryrefslogtreecommitdiffstats
path: root/sway/server.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-08-15 03:00:14 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-08-20 11:34:34 +0900
commitff7d979d99ddb087a02fc457953b33e3beb4715b (patch)
tree142e0f92672c9c73b7770dea3a846fef0e8d4011 /sway/server.c
parentinput/keyboard: send released only if pressed sent (diff)
downloadsway-ff7d979d99ddb087a02fc457953b33e3beb4715b.tar.gz
sway-ff7d979d99ddb087a02fc457953b33e3beb4715b.tar.zst
sway-ff7d979d99ddb087a02fc457953b33e3beb4715b.zip
cmd_xwayland: add force for immediate launch
This just adds a force option to cmd_xwayland that allows for xwayland to be immediately launched instead of lazily launched. This is useful for slower machines so it can be part of the startup time instead of when the user is actively trying to use it
Diffstat (limited to 'sway/server.c')
-rw-r--r--sway/server.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sway/server.c b/sway/server.c
index 6fe2a919..aee2cc87 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -167,10 +167,12 @@ void server_fini(struct sway_server *server) {
167 167
168bool server_start(struct sway_server *server) { 168bool server_start(struct sway_server *server) {
169#if HAVE_XWAYLAND 169#if HAVE_XWAYLAND
170 if (config->xwayland) { 170 if (config->xwayland != XWAYLAND_MODE_DISABLED) {
171 sway_log(SWAY_DEBUG, "Initializing Xwayland"); 171 sway_log(SWAY_DEBUG, "Initializing Xwayland (lazy=%d)",
172 config->xwayland == XWAYLAND_MODE_LAZY);
172 server->xwayland.wlr_xwayland = 173 server->xwayland.wlr_xwayland =
173 wlr_xwayland_create(server->wl_display, server->compositor, true); 174 wlr_xwayland_create(server->wl_display, server->compositor,
175 config->xwayland == XWAYLAND_MODE_LAZY);
174 wl_signal_add(&server->xwayland.wlr_xwayland->events.new_surface, 176 wl_signal_add(&server->xwayland.wlr_xwayland->events.new_surface,
175 &server->xwayland_surface); 177 &server->xwayland_surface);
176 server->xwayland_surface.notify = handle_xwayland_surface; 178 server->xwayland_surface.notify = handle_xwayland_surface;