enh: patch for extra NoCursor option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vnc4 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
In older versions of Vvnc there was an option to switch off the display of the mouse cursor. This option was useful when
using Xvnc to provide a view-only image.
This option is not present anymore in the current version of Xvnc.
Here follows a patch that reimplements that option. Feel free to include it in subsequent versions of Xvnc.
The new option is called 'NoCursor'. The change consists of only 6 lines.
Many thanks.
File vnc4-4.
--- XserverDesktop.
+++ XserverDesktop.cc 2009-05-05 19:10:07.000000000 +0200
@@ -72,6 +72,9 @@
+BoolParameter noCursor(
+ "Don't put up a cursor", false);
+
static KeyCode KeysymToKeycode
static rdr::U8 reverseBits[] = {
@@ -343,6 +346,9 @@
void XserverDesktop:
{
+ if(noCursor)
+ return;
+
try {
int w = cursor-
int h = cursor-