diff options
author | arg@mig29 <unknown> | 2006-12-05 13:30:37 +0100 |
---|---|---|
committer | arg@mig29 <unknown> | 2006-12-05 13:30:37 +0100 |
commit | 250aa199bbc3f12a538ac3162d8065d44fab8c22 (patch) | |
tree | c8f73b3c8de838b5b8009c8115effae4412cfe14 | |
parent | 5d43e9243ce7b3273f2438bec2da170dcc8e329b (diff) |
only setting LC_CTYPE
-rw-r--r-- | dmenu.h | 3 | ||||
-rw-r--r-- | draw.c | 2 |
2 files changed, 2 insertions, 3 deletions
@@ -3,14 +3,13 @@ | |||
3 | */ | 3 | */ |
4 | 4 | ||
5 | #include <X11/Xlib.h> | 5 | #include <X11/Xlib.h> |
6 | #include <X11/Xlocale.h> | ||
7 | 6 | ||
8 | #define FONT "fixed" | 7 | #define FONT "fixed" |
9 | #define NORMBGCOLOR "#333366" | 8 | #define NORMBGCOLOR "#333366" |
10 | #define NORMFGCOLOR "#cccccc" | 9 | #define NORMFGCOLOR "#cccccc" |
11 | #define SELBGCOLOR "#666699" | 10 | #define SELBGCOLOR "#666699" |
12 | #define SELFGCOLOR "#eeeeee" | 11 | #define SELFGCOLOR "#eeeeee" |
13 | #define SPACE 30 /* px */ | 12 | #define SPACE 30 /* px */ |
14 | 13 | ||
15 | /* color */ | 14 | /* color */ |
16 | enum { ColFG, ColBG, ColLast }; | 15 | enum { ColFG, ColBG, ColLast }; |
@@ -84,7 +84,7 @@ setfont(const char *fontstr) { | |||
84 | int i, n; | 84 | int i, n; |
85 | 85 | ||
86 | missing = NULL; | 86 | missing = NULL; |
87 | setlocale(LC_ALL, ""); | 87 | setlocale(LC_CTYPE, ""); |
88 | if(dc.font.set) | 88 | if(dc.font.set) |
89 | XFreeFontSet(dpy, dc.font.set); | 89 | XFreeFontSet(dpy, dc.font.set); |
90 | dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); | 90 | dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); |