dix: Add RootWindowFinalizeCallback

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Adam Jackson 2016-01-05 15:56:42 -05:00
parent 8437955515
commit 2c3a3afb51
2 changed files with 5 additions and 0 deletions

View File

@ -129,6 +129,8 @@ pthread_cond_t serverRunningCond = PTHREAD_COND_INITIALIZER;
#endif
CallbackListPtr RootWindowFinalizeCallback = NULL;
int
dix_main(int argc, char *argv[], char *envp[])
{
@ -230,6 +232,7 @@ dix_main(int argc, char *argv[], char *envp[])
FatalError("failed to create default stipple");
if (!CreateRootWindow(pScreen))
FatalError("failed to create root window");
CallCallbacks(&RootWindowFinalizeCallback, pScreen);
}
if (SetDefaultFontPath(defaultFontPath) != Success) {

View File

@ -594,6 +594,8 @@ typedef struct {
DeviceIntPtr device;
} DeviceEventInfoRec;
extern _X_EXPORT CallbackListPtr RootWindowFinalizeCallback;
extern int
XItoCoreType(int xi_type);
extern Bool