aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2024-02-05 11:07:33 +0100
committerSimon Ser <contact@emersion.fr>2024-02-05 11:07:33 +0100
commitf7a0f06dffb655a3335981c0ca010f25ac18c39d (patch)
tree3c0637536631e4efa44bfcaf012e584f7573a788 /sway
parentecfef1348aeacc5a815a22c011ad09e5bb8ff49c (diff)
commands: note how xwayland/primary_selection are reset on reload
Diffstat (limited to 'sway')
-rw-r--r--sway/commands/primary_selection.c2
-rw-r--r--sway/commands/xwayland.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands/primary_selection.c b/sway/commands/primary_selection.c
index 3edef945..9e2689c2 100644
--- a/sway/commands/primary_selection.c
+++ b/sway/commands/primary_selection.c
@@ -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");
diff --git a/sway/commands/xwayland.c b/sway/commands/xwayland.c
index 6ca26923..584a8e3a 100644
--- a/sway/commands/xwayland.c
+++ b/sway/commands/xwayland.c
@@ -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");