Commit f164dc18 authored by dscho's avatar dscho

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: 's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
parent b069f1dc
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment