From 5521293dc7b01d1b87c13f27a28359376d619631 Mon Sep 17 00:00:00 2001 From: Connor E <38229097+c-edw@users.noreply.github.com> Date: Fri, 19 Oct 2018 16:38:01 +0100 Subject: [PATCH] Change initial background mode before arg parse. --- main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.c b/main.c index 86dfd57..f2bb5c3 100644 --- a/main.c +++ b/main.c @@ -385,7 +385,6 @@ static void load_image(char *arg, struct swaylock_state *state) { return; } wl_list_insert(&state->images, &image->link); - state->args.mode = BACKGROUND_MODE_FILL; wlr_log(WLR_DEBUG, "Loaded image %s for output %s", image->path, image->output_name ? image->output_name : "*"); } @@ -851,7 +850,7 @@ int main(int argc, char **argv) { enum line_mode line_mode = LM_LINE; state.args = (struct swaylock_args){ - .mode = BACKGROUND_MODE_SOLID_COLOR, + .mode = BACKGROUND_MODE_FILL, .font = strdup("sans-serif"), .radius = 50, .thickness = 10,