This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Small update for X server 1.5.3 patch set


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]