From f164dc1893e88793415e71487b4a88bcb44b5d74 Mon Sep 17 00:00:00 2001 From: dscho Date: Tue, 13 May 2008 00:03:42 +0000 Subject: [PATCH] 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 --- examples/mac.c | 3 +++ 1 file changed, 3 insertions(+) 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;