From ff7d979d99ddb087a02fc457953b33e3beb4715b Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Thu, 15 Aug 2019 03:00:14 -0400 Subject: 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 --- include/sway/config.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/sway/config.h') diff --git a/include/sway/config.h b/include/sway/config.h index c65d9353..ae6e6750 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -424,6 +424,12 @@ enum alignment { ALIGN_RIGHT }; +enum xwayland_mode { + XWAYLAND_MODE_DISABLED, + XWAYLAND_MODE_LAZY, + XWAYLAND_MODE_IMMEADIATE +}; + /** * The configuration struct. The result of loading a config file. */ @@ -464,7 +470,7 @@ struct sway_config { size_t urgent_timeout; enum sway_fowa focus_on_window_activation; enum sway_popup_during_fullscreen popup_during_fullscreen; - bool xwayland; + enum xwayland_mode xwayland; // swaybg char *swaybg_command; -- cgit v1.2.3-54-g00ecf