summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2021-11-01 18:23:02 +0000
committerPhil Jones <philj56@gmail.com>2021-11-01 18:24:15 +0000
commita2197fe121e5de992a041b4d11495600cd7204ce (patch)
treef03a67968b0388620adf8a355c3e842d0f9d8d16
parent9508818e172475490d51cb10effc22b45b9f64e7 (diff)
Change default password character to full-stop.
-rw-r--r--doc/greetd-mini-wl-greeter.1.scd2
-rw-r--r--src/entry.c2
-rw-r--r--src/main.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/greetd-mini-wl-greeter.1.scd b/doc/greetd-mini-wl-greeter.1.scd
index 54f1dfd..7d107c3 100644
--- a/doc/greetd-mini-wl-greeter.1.scd
+++ b/doc/greetd-mini-wl-greeter.1.scd
@@ -55,7 +55,7 @@ All options which take a color expect a 3- or 6-digit hex code, e.g. F9A733.
Point size of the password text.
*-C, --password-character* <character>
- Character to use to hide the password. Defaults to '·'.
+ Character to use to hide the password. Defaults to full-stop.
*-n, --width-characters* <value>
Make the password entry box big enough to fit this many characters.
diff --git a/src/entry.c b/src/entry.c
index 1f1a5b8..fe2953c 100644
--- a/src/entry.c
+++ b/src/entry.c
@@ -165,7 +165,7 @@ void calculate_font_extents(struct entry *entry, uint32_t scale)
* To calculate the size of the password box, we do the following:
* 1. Load the font we're going to use.
* 2. Create a string of the desired length using the specified
- * password character, e.g. "·······".
+ * password character, e.g. ".......".
* 3. Render the string with Pango in some abstract layout.
* 4. Measure the bounding box of the layout.
* 5. Add on the size of the border / outline.
diff --git a/src/main.c b/src/main.c
index 7799653..b9be422 100644
--- a/src/main.c
+++ b/src/main.c
@@ -510,7 +510,7 @@ int main(int argc, char *argv[])
.font_size = 24,
.padding = 8,
.tight_layout = true,
- .password_character = L'·',
+ .password_character = '.',
.num_characters = 12,
.background_color = {0.106, 0.114, 0.118, 1.0},
.foreground_color = {1.0, 1.0, 1.0, 1.0}