aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorViolet Purcell <vimproved@inventati.org>2024-02-03 12:12:37 -0500
committerSimon Ser <contact@emersion.fr>2024-02-05 11:04:36 +0100
commit6b2aa8324681b2623f660c3851397761df9b70dc (patch)
tree17f54c469290c97cc82f71869e139ae0eaf159bb /sway
parent88e99fa84fc4537653adbd99aa0d11781c184774 (diff)
sway/config.c: only reset primary_selection at launch
Otherwise, an error will be shown whenever reloading due to the value of primary_selection being reset to true.
Diffstat (limited to 'sway')
-rw-r--r--sway/config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c
index 64ad9c70..d7b6b693 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -475,6 +475,11 @@ bool load_main_config(const char *file, bool is_active, bool validating) {
old_config->xwayland ? "enabled" : "disabled");
config->xwayland = old_config->xwayland;
+ // primary_selection can only be enabled/disabled at launch
+ sway_log(SWAY_DEBUG, "primary_selection will remain %s",
+ old_config->primary_selection ? "enabled" : "disabled");
+ config->primary_selection = old_config->primary_selection;
+
if (!config->validating) {
if (old_config->swaybg_client != NULL) {
wl_client_destroy(old_config->swaybg_client);