diff options
author | Torrey Lyons <torrey@mrcla.com> | 2004-08-12 20:24:36 +0000 |
---|---|---|
committer | Torrey Lyons <torrey@mrcla.com> | 2004-08-12 20:24:36 +0000 |
commit | 2889ad2cb8827f20b6d69da4fe99db33bf9c5ff2 (patch) | |
tree | 2272cd56d138442c59fc78b9b67854081a8ff3bc /hw/darwin/quartz/cr | |
parent | 961333143e2df3e3f33e8624fc61e79cf3e86cd1 (diff) | |
download | xserver-2889ad2cb8827f20b6d69da4fe99db33bf9c5ff2.tar.gz |
Fix crash in rootless XDarwin due to rootless being initialized before
damage extension.
Diffstat (limited to 'hw/darwin/quartz/cr')
-rw-r--r-- | hw/darwin/quartz/cr/crScreen.m | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/hw/darwin/quartz/cr/crScreen.m b/hw/darwin/quartz/cr/crScreen.m index 175007f3f..cba92f185 100644 --- a/hw/darwin/quartz/cr/crScreen.m +++ b/hw/darwin/quartz/cr/crScreen.m @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/hw/darwin/quartz/cr/crScreen.m,v 1.2 2004/04/23 19:15:51 eich Exp $ */ +/* $XdotOrg: xc/programs/Xserver/hw/darwin/quartz/cr/crScreen.m,v 1.3 2004/07/30 19:12:18 torrey Exp $ */ /* * Cocoa rootless implementation initialization */ @@ -47,6 +47,9 @@ #include "scrnintstr.h" #include "picturestr.h" #include "globals.h" +#ifdef DAMAGE +# include "damage.h" +#endif #undef BOOL // Name of GLX bundle using AGL framework @@ -258,6 +261,13 @@ CRSetupScreen(int index, ScreenPtr pScreen) } #endif /* RENDER */ +#ifdef DAMAGE + // The Damage extension needs to wrap underneath the + // generic rootless layer, so do it now. + if (!DamageSetup(pScreen)) + return FALSE; +#endif + // Initialize generic rootless code return CRInit(pScreen); } |