summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDominik Bendle <fubenkyou@protonmail.ch>2019-01-29 16:10:16 +0100
committerDominik Bendle <fubenkyou@protonmail.ch>2019-01-29 20:44:32 +0100
commit40e9098a741b1a213b55cd6a400aa1c7eb4f47e8 (patch)
treeaefcf80e26de3c590bbedf53244e41e163b30916 /include
parentecc8402c43262e7d92ffa238e4da609c174f55a0 (diff)
Add option show-failed-attempts
Keeps track of unsuccessful authentication attempts via an int counter in the state struct. Displays on the unlock indicator, but will be replaced by the Caps Lock text if enabled.
Diffstat (limited to 'include')
-rw-r--r--include/swaylock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/swaylock.h b/include/swaylock.h
index 56cee3b..f3ed374 100644
--- a/include/swaylock.h
+++ b/include/swaylock.h
@@ -50,6 +50,7 @@ struct swaylock_args {
bool show_indicator;
bool show_caps_lock_text;
bool show_caps_lock_indicator;
+ bool show_failed_attempts;
bool daemonize;
};
@@ -73,6 +74,7 @@ struct swaylock_state {
struct swaylock_password password;
struct swaylock_xkb xkb;
enum auth_state auth_state;
+ int failed_attempts;
bool run_display;
struct zxdg_output_manager_v1 *zxdg_output_manager;
};