summaryrefslogtreecommitdiff
path: root/dix/main.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-07-08 20:48:57 +0300
committerDaniel Stone <daniel@fooishbar.org>2007-08-01 01:53:31 +0300
commit0afeb0241a83796575da827bd81375c99ff10af5 (patch)
tree091937004feb6ebe531afd1c08cee62e5191ef67 /dix/main.c
parent62ec6d09b3adaea82ff52c8672e6f611c15ec56d (diff)
DIX: Clean up null root cursor handling
Move the null root cursor handling out of main() and into CreateRootCursor.
Diffstat (limited to 'dix/main.c')
-rw-r--r--dix/main.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/dix/main.c b/dix/main.c
index c5d3783c8..9fe822b29 100644
--- a/dix/main.c
+++ b/dix/main.c
@@ -411,22 +411,10 @@ main(int argc, char *argv[], char *envp[])
FatalError("could not open default font '%s'", defaultTextFont);
}
-#ifdef NULL_ROOT_CURSOR
- cm.width = 0;
- cm.height = 0;
- cm.xhot = 0;
- cm.yhot = 0;
-
- if (!(rootCursor = AllocCursor(NULL, NULL, &cm, 0, 0, 0, 0, 0, 0))) {
- FatalError("could not create empty root cursor");
- }
- AddResource(FakeClientID(0), RT_CURSOR, (pointer)rootCursor);
-#else
- if (!(rootCursor = CreateRootCursor(defaultCursorFont, 0))) {
+ if (!(rootCursor = CreateRootCursor(NULL, 0))) {
FatalError("could not open default cursor font '%s'",
defaultCursorFont);
}
-#endif
#ifdef DPMSExtension
/* check all screens, looking for DPMS Capabilities */