summaryrefslogtreecommitdiff
blob: 8ba0001c96f9417f9e94750df288981d2d9481e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/sxlock.c b/sxlock.c
index ca195d5..cc1f872 100644
--- a/sxlock.c
+++ b/sxlock.c
@@ -195,9 +195,10 @@ main_loop(Window w, GC gc, XFontStruct* font, WindowPositionInfo* info, char pas
             /* draw new passdisp or 'auth failed' */
             if (failed) {
                 x = base_x - XTextWidth(font, "authentication failed", 21) / 2;
-                XSetForeground(dpy, gc, red.pixel);
-                XDrawString(dpy, w, gc, x, base_y + ascent + 20, "authentication failed", 21);
-                XSetForeground(dpy, gc, white.pixel);
+                XSetWindowBackground(dpy, w, red.pixel);
+                //XSetForeground(dpy, gc, red.pixel);
+                //XDrawString(dpy, w, gc, x, base_y + ascent + 20, "authentication failed", 21);
+                //XSetForeground(dpy, gc, white.pixel);
             } else {
                 int lendisp = len;
                 if (hidelength && len > 0)
@@ -321,7 +322,7 @@ main(int argc, char** argv) {
 
     /* set default values for command-line arguments */
     opt_passchar = "*";
-    opt_font = "-misc-fixed-medium-r-*--17-120-*-*-*-*-iso8859-1";
+    opt_font = "-xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso10646-1";
     opt_username = username;
     opt_hidelength = False;