mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-16 00:19:55 +00:00
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>
This commit is contained in:
parent
eb750f8b5e
commit
a11c58fa0c
30 changed files with 122 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue