From f9a9d9e67912e77e6bccb18ee7ef8fd4d32df867 Mon Sep 17 00:00:00 2001 From: marha Date: Mon, 14 Jun 2010 15:04:01 +0000 Subject: Initialise g_iScreenPrivateKey --- xorg-server/hw/xwin/winallpriv.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xorg-server/hw/xwin') diff --git a/xorg-server/hw/xwin/winallpriv.c b/xorg-server/hw/xwin/winallpriv.c index 604c5f673..6a6dc60db 100644 --- a/xorg-server/hw/xwin/winallpriv.c +++ b/xorg-server/hw/xwin/winallpriv.c @@ -72,6 +72,13 @@ winAllocatePrivates (ScreenPtr pScreen) /* Intialize private structure members */ pScreenPriv->fActive = TRUE; + /* Reserve screen memory for our privates */ + if (!dixRegisterPrivateKey(g_iScreenPrivateKey, PRIVATE_SCREEN, 0)) + { + ErrorF ("winAllocatePrivates - dixRegisterPrivateKey () failed\n"); + return FALSE; + } + /* Save the screen private pointer */ winSetScreenPriv (pScreen, pScreenPriv); -- cgit v1.2.3