Patch from Frederic Koehler <f.koehler427@gmail.com>:
Define a final fallback for loading default window manager font;
before exiting, forcefully try to load "fixed" font. This is sufficient
to allow systems where fontList is set to an empty list to startup dtwm,
for now.
{
sprintf((char *)wmGD.tmpBuffer, ((char *)GETMESSAGE(62, 23, "failed to load font: %.100s\0")), (char*) pAData->fontList);
Warning((char *)wmGD.tmpBuffer);
+#if defined(CSRG_BASED) || defined(linux)
+ /* HACK to try get _some_ font anyway (fontList seems to end up as an empty list on
+ * some modern systems; investigate) */
+ pAData->font = XLoadQueryFont(wmGD.display, "fixed");
+ if (pAData->font == NULL) {
+ ExitWM(WM_ERROR_EXIT_VALUE);
+ }
+#else
ExitWM(WM_ERROR_EXIT_VALUE);
+#endif
+
}
#ifndef NO_MULTIBYTE