summaryrefslogtreecommitdiff
path: root/Xext/panoramiX.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-12-11 00:58:25 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-12-18 16:51:45 -0800
commita11c58fa0c5809f918b36b84be53385cb2d8ea59 (patch)
treed5b4416102f59a6abe3a86026bd6b5febb2ca26a /Xext/panoramiX.c
parenteb750f8b5e14751d4c40b50499baec5d2ba79db9 (diff)
Ensure all resource types created have names registered
Calls RegisterResourceName to record the type name for use by X-Resource, XACE/SELinux/XTsol, and DTrace. Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'Xext/panoramiX.c')
-rw-r--r--Xext/panoramiX.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Xext/panoramiX.c b/Xext/panoramiX.c
index f48bd36a6..2a950eefc 100644
--- a/Xext/panoramiX.c
+++ b/Xext/panoramiX.c
@@ -52,6 +52,7 @@ Equipment Corporation.
#include "globals.h"
#include "servermd.h"
#include "resource.h"
+#include "registry.h"
#ifdef RENDER
#include "picturestr.h"
#endif
@@ -513,6 +514,11 @@ void PanoramiXExtensionInit(int argc, char *argv[])
XRT_COLORMAP = CreateNewResourceType(XineramaDeleteResource);
if (XRT_WINDOW && XRT_PIXMAP && XRT_GC && XRT_COLORMAP) {
+ RegisterResourceName(XRT_WINDOW, "XineramaWindow");
+ RegisterResourceName(XRT_PIXMAP, "XineramaPixmap");
+ RegisterResourceName(XRT_GC, "XineramaGC");
+ RegisterResourceName(XRT_COLORMAP, "XineramaColormap");
+
panoramiXGeneration = serverGeneration;
success = TRUE;
}