summaryrefslogtreecommitdiff
path: root/xfixes/cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'xfixes/cursor.c')
-rw-r--r--xfixes/cursor.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/xfixes/cursor.c b/xfixes/cursor.c
index 0ef3e3aa4..1471a58d1 100644
--- a/xfixes/cursor.c
+++ b/xfixes/cursor.c
@@ -53,7 +53,6 @@
#include "inputstr.h"
#include "windowstr.h"
#include "xace.h"
-#include "registry.h"
static RESTYPE CursorClientType;
static RESTYPE CursorHideCountType;
@@ -1085,15 +1084,12 @@ XFixesCursorInit (void)
cs->pCursorHideCounts = NULL;
SetCursorScreen (pScreen, cs);
}
- CursorClientType = CreateNewResourceType(CursorFreeClient);
- if (CursorClientType)
- RegisterResourceName(CursorClientType, "XFixesCursorClient");
- CursorHideCountType = CreateNewResourceType(CursorFreeHideCount);
- if (CursorHideCountType)
- RegisterResourceName(CursorClientType, "XFixesCursorClient");
- CursorWindowType = CreateNewResourceType(CursorFreeWindow);
- if (CursorWindowType)
- RegisterResourceName(CursorWindowType, "XFixesCursorWindow");
+ CursorClientType = CreateNewResourceType(CursorFreeClient,
+ "XFixesCursorClient");
+ CursorHideCountType = CreateNewResourceType(CursorFreeHideCount,
+ "XFixesCursorHideCount");
+ CursorWindowType = CreateNewResourceType(CursorFreeWindow,
+ "XFixesCursorWindow");
if (pInvisibleCursor == NULL) {
pInvisibleCursor = createInvisibleCursor();