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
This commit is contained in:
Brian Ashworth 2019-08-15 03:00:14 -04:00 committed by Drew DeVault
parent 384afc5cb5
commit ff7d979d99
5 changed files with 27 additions and 8 deletions

View file

@ -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;