i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
commit f7f3e709132f84a8089a7a9a5564b32fe585ab4a
parent c6229bac33cd40c3d3947771edc638d94f643891
Author: Alphonse Mariya <alphonse.mariya@hotmail.com>
Date:   Tue,  6 Mar 2018 13:59:44 +0100

Fix option parsing to use correct getopt_long

Diffstat:
Mi3lock.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/i3lock.c b/i3lock.c
@@ -1375,16 +1375,16 @@ int main(int argc, char *argv[]) {
                 strcpy(date_format,optarg);
                 break;
             case 512:
-                // if layout is NULL, do nothing
-                // if not NULL, attempt to display stuff
-                // need to code some sane defaults for it
-                keylayout_mode = atoi(optarg);
+                verif_text = optarg;
                 break;
             case 513:
-                verif_text = optarg;
+                wrong_text = optarg;
                 break;
             case 514:
-                wrong_text = optarg;
+                // if layout is NULL, do nothing
+                // if not NULL, attempt to display stuff
+                // need to code some sane defaults for it
+                keylayout_mode = atoi(optarg);
                 break;
             case 515:
                 noinput_text = optarg;