Line 0
Link Here
|
|
|
1 |
--- src/wmapp.cc.orig 2013-11-17 16:54:39 UTC |
2 |
+++ src/wmapp.cc |
3 |
@@ -221,7 +221,7 @@ static void registerProtocols2(Window xid) { |
4 |
#endif |
5 |
|
6 |
long pid = getpid(); |
7 |
- const char wmname[] = "IceWM "VERSION" ("HOSTOS"/"HOSTCPU")"; |
8 |
+ const char wmname[] = "IceWM " VERSION" (" HOSTOS"/" HOSTCPU")"; |
9 |
|
10 |
#ifdef GNOME1_HINTS |
11 |
XChangeProperty(xapp->display(), xid, |
12 |
@@ -337,7 +337,7 @@ static void initFontPath(IApp *app) { |
13 |
int ndirs; // ------------------- retrieve the old X's font path --- |
14 |
char ** fontPath(XGetFontPath(xapp->display(), &ndirs)); |
15 |
|
16 |
- char ** newFontPath = new char *[ndirs + 1]; |
17 |
+ const char ** newFontPath = new const char *[ndirs + 1]; |
18 |
newFontPath[ndirs] = fontsdir; |
19 |
|
20 |
if (fontPath) |
21 |
@@ -383,7 +383,7 @@ static void initFontPath(IApp *app) { |
22 |
XChangeProperty(xapp->display(), manager->handle(), |
23 |
XA_ICEWM_FONT_PATH, XA_STRING, 8, PropModeReplace, |
24 |
(unsigned char *) fontsdir, strlen(fontsdir)); |
25 |
- XSetFontPath(xapp->display(), newFontPath, ndirs + 1); |
26 |
+ const char ** newFontPath = new const char *[ndirs + 1]; |
27 |
|
28 |
if (fontPath) XFreeFontPath(fontPath); |
29 |
delete[] fontsdir; |