mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +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:
@@ -39,6 +39,7 @@ in this Software without prior written authorization from The Open Group.
|
||||
#include "dixstruct.h"
|
||||
#include "pixmapstr.h"
|
||||
#include "scrnintstr.h"
|
||||
#include "registry.h"
|
||||
|
||||
typedef struct _Sertafied {
|
||||
struct _Sertafied *next;
|
||||
@@ -90,6 +91,7 @@ ClientSleepUntil (ClientPtr client,
|
||||
SertafiedResType = CreateNewResourceType (SertafiedDelete);
|
||||
if (!SertafiedResType)
|
||||
return FALSE;
|
||||
RegisterResourceName(SertafiedResType, "ClientSleep");
|
||||
SertafiedGeneration = serverGeneration;
|
||||
BlockHandlerRegistered = FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user