summaryrefslogtreecommitdiff
path: root/os/utils.c
diff options
context:
space:
mode:
authorSimon Farnsworth <simon.farnsworth@onelan.co.uk>2009-04-23 16:15:01 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2009-04-28 10:43:53 +1000
commit707af5f8c5fae3b6c4c5125a91917667bb0ab908 (patch)
tree79a631146be2c69da4c10b88c88e9a54ee6075a9 /os/utils.c
parent40a8f2f4088aa353de733a11327b628ef13a52e6 (diff)
Make the cursor completely optional
For embedded use, it's convenient to be able to disable the cursor completely, without having to audit and fix up all your third-party code (e.g. Mozilla Firefox). Add -nocursor and -cursor server options to enable and disable the cursor. The default is still -cursor, but embedded users can run the server with -nocursor to hide the cursor regardless of what application developers do. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'os/utils.c')
-rw-r--r--os/utils.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/os/utils.c b/os/utils.c
index 78a50b254..00abd6396 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -482,6 +482,8 @@ void UseMsg(void)
ErrorF("-c turns off key-click\n");
ErrorF("c # key-click volume (0-100)\n");
ErrorF("-cc int default color visual class\n");
+ ErrorF("-cursor enable the cursor (default)\n");
+ ErrorF("-nocursor disable the cursor\n");
ErrorF("-core generate core dump on fatal error\n");
ErrorF("-dpi int screen resolution in dots per inch\n");
#ifdef DPMSExtension
@@ -660,7 +662,15 @@ ProcessCommandLine(int argc, char *argv[])
#endif
CoreDump = TRUE;
}
- else if ( strcmp( argv[i], "-dpi") == 0)
+ else if ( strcmp( argv[i], "-nocursor") == 0)
+ {
+ EnableCursor = FALSE;
+ }
+ else if ( strcmp( argv[i], "-cursor") == 0)
+ {
+ EnableCursor = TRUE;
+ }
+ else if ( strcmp( argv[i], "-dpi") == 0)
{
if(++i < argc)
monitorResolution = atoi(argv[i]);