diff options
Diffstat (limited to 'x11-misc/sxlock/files/sxlock-1.1-red-background.patch')
-rw-r--r-- | x11-misc/sxlock/files/sxlock-1.1-red-background.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/x11-misc/sxlock/files/sxlock-1.1-red-background.patch b/x11-misc/sxlock/files/sxlock-1.1-red-background.patch new file mode 100644 index 0000000..8ba0001 --- /dev/null +++ b/x11-misc/sxlock/files/sxlock-1.1-red-background.patch @@ -0,0 +1,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; + |