mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
Change initial background mode before arg parse.
This commit is contained in:
parent
0a4735c50c
commit
d855837da2
@ -385,7 +385,6 @@ static void load_image(char *arg, struct swaylock_state *state) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
wl_list_insert(&state->images, &image->link);
|
wl_list_insert(&state->images, &image->link);
|
||||||
state->args.mode = BACKGROUND_MODE_FILL;
|
|
||||||
wlr_log(WLR_DEBUG, "Loaded image %s for output %s",
|
wlr_log(WLR_DEBUG, "Loaded image %s for output %s",
|
||||||
image->path, image->output_name ? image->output_name : "*");
|
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;
|
enum line_mode line_mode = LM_LINE;
|
||||||
state.args = (struct swaylock_args){
|
state.args = (struct swaylock_args){
|
||||||
.mode = BACKGROUND_MODE_SOLID_COLOR,
|
.mode = BACKGROUND_MODE_FILL,
|
||||||
.font = strdup("sans-serif"),
|
.font = strdup("sans-serif"),
|
||||||
.radius = 50,
|
.radius = 50,
|
||||||
.thickness = 10,
|
.thickness = 10,
|
||||||
|
Loading…
Reference in New Issue
Block a user