[PATCH xserver 1/9] dix: Add RootWindowFinalizeCallback

Adam Jackson ajax at redhat.com
Wed Jan 6 06:30:29 PST 2016


Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 dix/main.c    | 3 +++
 include/dix.h | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/dix/main.c b/dix/main.c
index 661ab03..77e0f2e 100644
--- a/dix/main.c
+++ b/dix/main.c
@@ -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) {
diff --git a/include/dix.h b/include/dix.h
index 921156b..9022120 100644
--- a/include/dix.h
+++ b/include/dix.h
@@ -586,6 +586,8 @@ typedef struct {
     DeviceIntPtr device;
 } DeviceEventInfoRec;
 
+extern _X_EXPORT CallbackListPtr RootWindowFinalizeCallback;
+
 extern int
 XItoCoreType(int xi_type);
 extern Bool
-- 
2.5.0



More information about the xorg-devel mailing list