Commit Graph

40 Commits (e2beac6d939ac6c07114b42a4708d2ea78c35295)

Author SHA1 Message Date
Christian Beier efcdab50cc Merge branch 'server-ipv6' 13 years ago
Johannes Schindelin ee4593425f SDLvncviewer: map Apple/Windows keys correctly
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
13 years ago
Johannes Schindelin f11e49b4e7 SDLvncviewer: fix the SDL_KEYUP issue
Keys got stuck because unicode is 0 upon SDL_KEYUP events, even if the
same key event sets unicode correctly in SDL_KEYDOWN events.

Work around that for the common case (ASCII) using the fact that both SDL
and X11 keysyms were created with ASCII compatibility in mind. So as long
as we type ASCII symbols, we can map things trivially.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
13 years ago
Christian Beier 75bfb1f5d3 IPv6 support for LibVNCServer, part three: make reverse connections IPv6-capable.
Besided making libvncserver reverseVNC IPv6-aware, this introduces some changes
on the client side as well to make clients listen on IPv6 sockets, too. Like
the server side, this also uses a separate-socket approach.
13 years ago
Johannes Schindelin 84be9d3f49 SDLvncviewer: make it resizable by default
I got annoyed having to specify -resizable all the time; I never use it in
another mode anymore, since I am on a netbook.

The option -no-resizable was added to be able to switch off that feature.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
14 years ago
Christian Beier 824644d0a2 SDLvncviewer: fix compilation from dist tarball.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
14 years ago
Christian Beier 705a5d46e6 Add doxygen documentation support.
Adds automagically generating libvncserver/libvncclient API
    documentation using doxygen. This gives a nice overview on both APIs,
    include dependencies and function call/caller dependencies.

    TODO: Modify all the explaining comments in the .c files for use with
          doxygen as well.

    This patch only changes comments, no functional changes at all!

Signed-off-by: Christian Beier <dontmind@freeshell.org>
14 years ago
Johannes Schindelin 14854d2e5e Fix compilation with newer automake
For some reason, this developer's automake no longer understands _SOURCES
lines anymore. Work around that.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
15 years ago
Christian Beier 76b468ceb0 SDLvncviewer: don't call clean up the same client twice.
If rfbInitConnection fails, it cleans up the client, so protect against
doing it ourselves again.

Signed-off-by: Christian Beier <dontmind@freeshell.org>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
16 years ago
Christian Beier 7ed1c0aeac SDLvncviewer: add SIGINT handler to be able to actually stop program.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
16 years ago
Christian Beier 1f6c560985 SDLvncviewer: use -listennofork when -listen specified.
As -listen mode isn't really working under UNIX and not at all under
windows, use -listennofork and an outer listen loop instead.

Signed-off-by: Christian Beier <dontmind@freeshell.org>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
16 years ago
Christian Beier 3b608cd39b SDLvncviewer: make listen mode work _somewhat_.
set the port to listen on and really ensure that the
window of the fork()ed instance is closed.

works somewhat: it's now actually possible to listen for an
incoming connection and to close it again, but the second
connection attempt fails with 'XIO:  fatal IO error 11
(Resource temporarily unavailable)'. this could relate to the
fact that SDL uses threads internally and we're fork()ing
here...

Signed-off-by: Christian Beier <dontmind@freeshell.org>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
16 years ago
dscho e2874d343a Teach SDLvncviewer about scroll wheel events
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
16 years ago
dscho 76db22022c SDLvncviewer: fix passing a wrong pointer type
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
16 years ago
dscho ebe79c28c3 Clipboard support for SDLvncviewer
The clipboard support has only been tested on Linux so far.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
16 years ago
dscho eb1cc7608b SDLvncviewer: upon focus loss, force releasing the Alt keys
When switching windows using the Alt+Tab shortcut, SDLvncviewer would
get the "down" event, but not the "up" event.  This patch provides
a workaround.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
16 years ago
dscho e12c4ccf23 SDLvncviewer: refactor event handling
Instead of having deep indent levels, put the code to handle events into
its own function.  That also helps readability.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
16 years ago
dscho a02607fe35 Teach SDLvncviewer to be resizable
Using "SDLvncviewer -resizable", you make the window resizable.  This
means that you can shrink the window (e.g. when you are trying to access
an x11vnc from your little netbook), or you can enlarge it.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
16 years ago
dscho 3ab7d5d766 SDLvncviewer: enable key repeat
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
16 years ago
dscho a824cf443d SDLvncviewer: update screen correctly after a resize
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
17 years ago
dscho b069f1dc01 SDLvncviewer: add -viewonly
Just like its siblings from other projects, SDLvncviewer now supports
viewonly connections.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
17 years ago
dscho e526c4816b SDLvncviewer: fix button handling
For some reason, I swapped buttons 2 and 3 on Dec 7, 2005, in commit
"translate keys based on unicode (much more reliable than sym)".
I do not remember why, nor what I smoked, but this was wrong.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
17 years ago
dscho 2530c5fa4c SDLvncviewer: fix Ctrl+<letter>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
17 years ago
dscho 20fe2c2e96 SDLvncviewer: fix translation of the Tab key
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
17 years ago
steven_carr ccdbe8f325 The great UltraVNC Compatibility Commit 19 years ago
dscho 7602f0e750 libvncclient: support changing of framebuffer size; make SDLvncviewer use it 19 years ago
dscho 9b51d63d49 fix SDLvncviewer for widths which are not divisible by 8 19 years ago
dscho 1602b345f3 add KeyboardLedState extension 19 years ago
dscho 1b81e342cb assorted fixes for MinGW32 19 years ago
dscho 6a7736f87a translate keys based on unicode (much more reliable than sym) 19 years ago
dscho 194a76df11 add an extension mechanism for LibVNCClient, modify the client data handling
so that more than one data structure can be attached, and add an example
to speak the client part of the back channel.
20 years ago
dscho 93ab95b1d3 try 32 bit first 20 years ago
dscho 8bee4eb990 ANSIfy, fix some warnings from Linus' sparse 20 years ago
dscho a20d0817ef fix for older SDL versions 20 years ago
dscho 658b65ad0c support MinGW32! 21 years ago
dscho c8ccb166ba cleanups; libvncclient supports -encodings already 21 years ago
dscho 68422b6309 fix compilation on MacOSX 21 years ago
dscho c7730d9bad added -encodings 21 years ago
dscho fc45b97d65 add mouse button handling 21 years ago
dscho 2b8c2a5c3a add client_examples/, add SDLvncviewer, libvncclient API changes, suppress automake CFLAGS nagging 21 years ago