mirror of
https://github.com/NickHu/sway
synced 2024-12-25 21:58:16 +01:00
commands: note how xwayland/primary_selection are reset on reload
This commit is contained in:
parent
ecfef1348a
commit
f7a0f06dff
2 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,8 @@ struct cmd_results *cmd_primary_selection(int argc, char **argv) {
|
|||
|
||||
bool primary_selection = parse_boolean(argv[0], true);
|
||||
|
||||
// config->primary_selection is reset to the previous value on reload in
|
||||
// load_main_config()
|
||||
if (config->reloading && config->primary_selection != primary_selection) {
|
||||
return cmd_results_new(CMD_FAILURE,
|
||||
"primary_selection can only be enabled/disabled at launch");
|
||||
|
|
|
@ -20,6 +20,8 @@ struct cmd_results *cmd_xwayland(int argc, char **argv) {
|
|||
xwayland = XWAYLAND_MODE_DISABLED;
|
||||
}
|
||||
|
||||
// config->xwayland is reset to the previous value on reload in
|
||||
// load_main_config()
|
||||
if (config->reloading && config->xwayland != xwayland) {
|
||||
return cmd_results_new(CMD_FAILURE,
|
||||
"xwayland can only be enabled/disabled at launch");
|
||||
|
|
Loading…
Reference in a new issue