• dscho's avatar
    pointerClient was still static. · a84b3d07
    dscho authored
    do not make requestedRegion empty without reason.
    
    the cursor handling for clients which don't handle CursorShape updates was
    completely broken. It originally was very complicated for performance
    reasons, however, in most cases it made performance even worse, because at
    idle times there was way too much checking going on, and furthermore,
    sometimes unnecessary updates were inevitable.
    
    The code now is much more elegant: the ClientRec structure knows exactly
    where it last painted the cursor, and the ScreenInfo structure knows where
    the cursor shall be.
    
    As a consequence there is no more rfbDrawCursor()/rfbUndrawCursor(), no more
    dontSendFramebufferUpdate, and no more isCursorDrawn.  It is now possible to
    have clients which understand CursorShape updates and clients which don't at
    the same time.
    
    rfbSetCursor no longer has the option freeOld; this is obsolete, as the cursor
    structure knows what to free and what not.
    a84b3d07
VNConsole.c 12 KB