summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2006-08-02 13:39:49 -0400
committerEamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil>2006-08-02 13:39:49 -0400
commit3c23dec5962b8b81ae838fe0ee2c7b0a789f5386 (patch)
treeb65062479668a532b4ffc41e50205cbbf72d6592
parentf737cc38baea6af8bf284c9e207e60a7d90eebe1 (diff)
Call ClientStateCallback on serverClient devPrivates initialization.
-rw-r--r--dix/dispatch.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/dix/dispatch.c b/dix/dispatch.c
index a754a2f9e..a717fbd4a 100644
--- a/dix/dispatch.c
+++ b/dix/dispatch.c
@@ -3698,6 +3698,17 @@ InitClientPrivates(ClientPtr client)
else
ppriv->ptr = (pointer)NULL;
}
+
+ /* Allow registrants to initialize the serverClient devPrivates */
+ if (!client->index && ClientStateCallback)
+ {
+ NewClientInfoRec clientinfo;
+
+ clientinfo.client = client;
+ clientinfo.prefix = (xConnSetupPrefix *)NULL;
+ clientinfo.setup = (xConnSetup *) NULL;
+ CallCallbacks((&ClientStateCallback), (pointer)&clientinfo);
+ }
return 1;
}