]> mj.ucw.cz Git - osdd.git/blobdiff - osdd.c
osd-batt: Bugfix to previous commit
[osdd.git] / osdd.c
diff --git a/osdd.c b/osdd.c
index f5cd44f776b31819ae9665805aa0329a35a21a63..ba279b292816f88fffdb26fe45d666c26f077664 100644 (file)
--- a/osdd.c
+++ b/osdd.c
@@ -10,6 +10,7 @@
 #include <unistd.h>
 #include <poll.h>
 #include <getopt.h>
+#include <locale.h>
 #include <xosd.h>
 #include <X11/Xlib.h>
 #include <X11/Xatom.h>
@@ -28,7 +29,7 @@ static char *font_name = "-bitstream-bitstream vera sans-bold-r-normal-*-*-320-*
 static char *default_color = "green";
 static char *default_outline_color = "black";
 static int default_duration = 1000;
-static int default_min_duration = 1000;
+static int default_min_duration = 250;
 static int debug_mode;
 
 static const char short_opts[] = "c:d:Df:l:m:o:";
@@ -228,6 +229,7 @@ int
 main(int argc, char **argv)
 {
   parse_opts(argc, argv);
+  setlocale(LC_CTYPE, "");
   XInitThreads();
 
   Display *dpy = XOpenDisplay(NULL);