Skip to content

Commit 1c07868

Browse files
vimprovedemersion
authored andcommitted
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. (cherry picked from commit 6b2aa83)
1 parent ff67f5f commit 1c07868

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sway/config.c

+5
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,11 @@ bool load_main_config(const char *file, bool is_active, bool validating) {
475475
old_config->xwayland ? "enabled" : "disabled");
476476
config->xwayland = old_config->xwayland;
477477

478+
// primary_selection can only be enabled/disabled at launch
479+
sway_log(SWAY_DEBUG, "primary_selection will remain %s",
480+
old_config->primary_selection ? "enabled" : "disabled");
481+
config->primary_selection = old_config->primary_selection;
482+
478483
if (!config->validating) {
479484
if (old_config->swaybg_client != NULL) {
480485
wl_client_destroy(old_config->swaybg_client);

0 commit comments

Comments
 (0)