diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2006-08-02 13:39:49 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil> | 2006-08-02 13:39:49 -0400 |
commit | 3c23dec5962b8b81ae838fe0ee2c7b0a789f5386 (patch) | |
tree | b65062479668a532b4ffc41e50205cbbf72d6592 /dix/dispatch.c | |
parent | f737cc38baea6af8bf284c9e207e60a7d90eebe1 (diff) |
Call ClientStateCallback on serverClient devPrivates initialization.
Diffstat (limited to 'dix/dispatch.c')
-rw-r--r-- | dix/dispatch.c | 11 |
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; } |