This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Small update for X server 1.5.3 patch set
- From: "Colin Harrison" <colin dot harrison at virgin dot net>
- To: <cygwin-xfree at cygwin dot com>
- Date: Sat, 13 Dec 2008 15:58:49 -0000
- Subject: Re: Small update for X server 1.5.3 patch set
- Reply-to: cygwin-xfree at cygwin dot com
Hi,
>Colin said
>I thing that's what the static last_pf stuff in my dixfonts patch does?
That was an old bodge, that worked but was not that clever.
Better to not call 'InitFonts()' other than on serverGeneration 1 and not
call 'FreeFonts()' unless shutting down
--- ./dix/save_main.c 2008-12-12 09:20:45.000000000 +0000
+++ ./dix/main.c 2008-12-13 14:29:33.000000000 +0000
@@ -326,7 +326,7 @@
FatalError("failed to create root window");
}
- InitFonts();
+ if (serverGeneration == 1) InitFonts();
if (SetDefaultFontPath(defaultFontPath) != Success) {
ErrorF("[dix] failed to set default font path '%s'",
defaultFontPath);
}
@@ -416,7 +416,7 @@
xfree(screenInfo.screens[i]);
screenInfo.numScreens = i;
}
- FreeFonts();
+ if (dispatchException & DE_TERMINATE) FreeFonts();
FreeAuditTimer();
Thanks
Colin
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/