enh: patch for extra NoCursor option

Bug #372717 reported by Erik Devriendt
6
This bug affects 1 person
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.1.1+xorg1.0.2/unix/xc/programs/Xserver/vnc:

--- XserverDesktop.cc.orig 2009-05-06 15:50:03.000000000 +0200
+++ XserverDesktop.cc 2009-05-05 19:10:07.000000000 +0200
@@ -72,6 +72,9 @@
                                  "rejecting the connection",
                                  10);

+BoolParameter noCursor("NoCursor",
+ "Don't put up a cursor", false);
+
 static KeyCode KeysymToKeycode(KeySymsPtr keymap, KeySym ks, int* col);

 static rdr::U8 reverseBits[] = {
@@ -343,6 +346,9 @@

 void XserverDesktop::setCursor(CursorPtr cursor)
 {
+ if(noCursor)
+ return;
+
   try {
     int w = cursor->bits->width;
     int h = cursor->bits->height;

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.