summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authordscho <dscho>2008-05-13 00:03:42 +0000
committerdscho <dscho>2008-05-13 00:03:42 +0000
commitf164dc1893e88793415e71487b4a88bcb44b5d74 (patch)
tree47b2adc7d4e1cb1376607f12fae3e41fac8b9993 /examples
parentb069f1dc015e4d84a5690d4e5fe2e1578e79702b (diff)
downloadlibvncserver-f164dc1893e88793415e71487b4a88bcb44b5d74.zip
libvncserver-f164dc1893e88793415e71487b4a88bcb44b5d74.tar.gz
examples/mac: disable the cursor
We cannot write access the frame buffer, and we do not have a sensible cursor anyway, so better disable the cursor (which would have to be drawn for clients that do not support CursorShapeUpdates). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'examples')
-rw-r--r--examples/mac.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/mac.c b/examples/mac.c
index 6ad0a54..2d335a4 100644
--- a/examples/mac.c
+++ b/examples/mac.c
@@ -464,6 +464,9 @@ ScreenInit(int argc, char**argv)
rfbScreen->frameBuffer =
(char *)CGDisplayBaseAddress(kCGDirectMainDisplay);
+ /* we cannot write to the frame buffer */
+ rfbScreen->cursor = NULL;
+
rfbScreen->ptrAddEvent = PtrAddEvent;
rfbScreen->kbdAddEvent = KbdAddEvent;
OpenPOWER on IntegriCloud