Commit Graph

65 Commits (8f1b565dbeab0afd2965ef2fe8af86aabb1275dc)

Author SHA1 Message Date
dscho 8bee4eb990 ANSIfy, fix some warnings from Linus' sparse 20 years ago
runge be5b1296e4 libvncserver/{main.c,rfbserver.c}: fix a couple more CopyRect memory leaks 20 years ago
dscho 446a6fabac fix memory leaks detected using valgrind 20 years ago
dscho 34f714bcdc socketInitDone -> socketState 20 years ago
runge 1bb36df34e libvncserver/main.c: fix memory leak in rfbDoCopyRect/rfbScheduleCopyRect; configure.ac tweaks. 20 years ago
runge b8b96689bf add '-listen ipaddr' option 20 years ago
dscho 155f4c1053 fix disappearing cursor 20 years ago
dscho a84b3d072a pointerClient was still static.
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.
20 years ago
dscho 135767a93e fix comment 20 years ago
dscho 2cd3c824c6 return value of rfbProcessEvents tells if an update was pending 20 years ago
dscho e78a41c69c add hook to allow for custom client messages 20 years ago
dscho 658b65ad0c support MinGW32! 21 years ago
dscho 97299606da global structures/functions should have "rfb", "sra" or "zrle" as prefix,
while structure members should not
21 years ago
runge e3c8cddef9 x11vnc: view-only plain passwd: -viewpasswd and 2nd line of -passwdfile 21 years ago
dscho 876868553d move the library into libvncserver/, x11vnc into x11vnc/ 21 years ago