Pierre Ossman
beedf28299
TigerVNC 1.8.90 (1.9.0 beta)
6 years ago
Michal Srb
3a37af39e0
Add support for X server 1.20.0.
In-server GLVND requires xorgGlxCreateVendor call from InitOutput.
DPMS functions were moved to another location and no longer need to be faked.
xserver120.patch is a copy of xserver119.patch with refreshed contexts.
6 years ago
Pierre Ossman
39594b801d
Unix socket support in x0vncserver
6 years ago
Pierre Ossman
621580d7a8
Proper cleanup on termination of Xvnc/libvnc.so
6 years ago
Pierre Ossman
559e8b8854
Merge common socket code
6 years ago
Pierre Ossman
5d05546fe4
Add support for Unix sockets
Patch originally by Dag-Erling Smørgrav for University of Oslo.
6 years ago
Peter Åstrand (astrand)
86e4eb66d1
x0vncserver: Make sure rotation for new outputs is set to RR_Rotate_0
The Xserver (at least Xorg 1.19) rejects RRSetCrtcConfig requests if
rotation is zero.
6 years ago
Pierre Ossman
e58fcb99b0
Handle view only password in vncpasswd filter mode
6 years ago
Pierre Ossman
e3a2be69c4
Use abstract SocketListener class
Makes the code more general and not directly tied to specifically
TCP sockets.
6 years ago
Pierre Ossman
db78f2a70f
Improve out-of-tree build of Xvnc/libvnc.so
With the new unixcommon library we have things outside of common/,
so make the handling of out-of-tree builds more general.
6 years ago
Peter Åstrand (astrand)
242c5b2c8a
Add RandR support for x0vncserver
Change Xserver screen through libXrandr. For complex configurations,
all outputs must have corresponding size modes. As a special case, if
the client requests a single screen with an odd size (for example when
adjusting the size of a non-fullscreen vncviewer), find a smaller
suitable mode, and reduce the framebuffer size as well.
6 years ago
Peter Åstrand (astrand)
54f49fded0
Add a tryScreenLayout function
This can be used to test if a layout if possible.
6 years ago
Peter Åstrand (astrand)
651faf8127
Add debug log messages
6 years ago
Peter Åstrand (astrand)
8fcf6cc659
Avoid disabling outputs which are already disabled
Better to avoid making unnecessary calls, but mainly we want to avoid
logging false errors.
6 years ago
Peter Åstrand (astrand)
a61c6f2a24
Select the correct output for new screens
For example, if we have earlier disabled an output because it was too
large for the framebuffer, we should prefer this output when
allocating new outputs.
Move the code that turn off unused outputs to the end.
Also, add support for checking the output connection state.
6 years ago
Peter Åstrand (astrand)
396f8c9fb5
Disable outputs which are larger than the target framebuffer size
Apparently this is not necessary when using the internal API, but a
must with libXrandr.
6 years ago
Peter Åstrand (astrand)
4237025936
vncRandRDisableOutput: Disable only the requested output
This only matters when using clones, which we do not accept yet. This
patch is for completeness and to avoid future surprises.
6 years ago
Peter Åstrand (astrand)
d57acc34e7
Make vncRandRGetOutputDimensions tolerant for disabled outputs
Return error if no CRTC.
6 years ago
Peter Åstrand (astrand)
ffeda0767f
Remove "screen" argument from Randr glue functions
Screen is a Xvnc thing and not relevant for x0vncserver etc.
6 years ago
Peter Åstrand (astrand)
ab98f7657b
Removed support for building without RANDR define
RANDR is mandatory since Xorg 1.7, which is the oldest version we
support.
6 years ago
Peter Åstrand (astrand)
94ab2db366
Corrected RandR wrapper return codes
In RandR land, there's a lot of return code confusion. Our wrappers
are using the same return codes as RRCrtcSet, RRScreenSizeSet: 1/TRUE
for success. Fixes:
* vncRandRCreateOutputs did not follow this convention
* A lot of code returned -1 upon failure
* vncRandRDisableOutput returned 0 for already disabled outputs
6 years ago
Peter Åstrand (astrand)
1173637739
Move computeScreenLayout/setScreenLayout to unixcommon lib
These two code blocks are not specific to Xvnc/vnc.so, but useful for
x0vncserver as well. RandrGlue.h defines the interface on which
unixcommon depends on.
6 years ago
Peter Åstrand (astrand)
758b83ba53
vncRandRGetOutputName: return a copy of the string
Compatibility with libXrandr, where the name is in dynamically
allocated XRROutputInfo.
6 years ago
Peter Åstrand (astrand)
e3aece4bac
Make vncRandRGetOutputId return the actual id; not a pointer
Less confusing, and compatible with libXrandr.
6 years ago
Peter Åstrand (astrand)
c24f899b9e
Indented computeScreenLayout and setScreenLayout
Should use 2 spaces like the rest of the project.
6 years ago
Pierre Ossman
07580a86a5
Fix indentation in XDesktop.cxx
It wasn't properly updated in 3112f50
when it was split off from
x0vncserver.cxx.
6 years ago
Michal Srb
18a77077de
Unset pixel buffer when x0vncserver client disconnects.
In XDesktop::start() we allocate pixel buffer and set it as the backend to the given VNCServer.
In XDesktop::stop() we deallocate the buffer, so we must unset it from the VNCServer as well.
Otherwise the VNCServer could try to access it and crash, for example in deferred update.
6 years ago
Pierre Ossman
7450a6fe11
Check for TrueColor support in x0vncserver
Colour map support was removed in b6b4dc6, but x0vncserver didn't
properly check if the X server required it.
6 years ago
Oliver Gondža
2d614c0fb4
Make sure auth argument is escaped
6 years ago
Samuel Mannehed
518698a28c
Update visible copyright year to 2018
6 years ago
Pierre Ossman
8f652339cd
Fix for RENDER hooks on Xorg < 1.12
TriFan and TriStrip were added in 1.12, so we need to have that code
conditional to support older versions of Xorg.
6 years ago
Pierre Ossman
cf661bff54
Add overlooked parameters to Xvnc and x0vncserver man pages
There were a bunch of parameters that weren't properly added to the
man pages when the features were added. Make sure everything is
properly in sync.
6 years ago
Pierre Ossman
8ddfd940fe
Sync x0vncserver and Xvnc man pages
They share a lot of settings, so make sure the documentation is
identical in those cases.
6 years ago
Pierre Ossman
37242ccf6d
Remove DeferUpdate from man pages
The funcationality was removed in 6e49e95, so let's also clean up
the documentation referring to it.
6 years ago
Peter Åstrand (astrand)
6011f96cdc
Rename README.txt to README.rst and convert to reStructuredText
6 years ago
Pierre Ossman
2922e74970
Hook remaining XRender operations
We had overlooked a few so we didn't track all screen changes properly.
6 years ago
Peter Åstrand (astrand)
46fab93cbd
Use XShmGetImage for large reads
XShmGetImage is much faster. On my machine, this reduces the CPU usage
of a fullscreen Youtube video playback from 40% to 25%.
6 years ago
Pierre Ossman
dc27b95bd2
Adjust dimensions for rotated monitors
We need to flip the dimensions in the case the monitor is rotated
90° or they won't map correctly to the framebuffer.
6 years ago
Pierre Ossman
e39540b462
Make VNC extension startup mandatory
No longer tolerate loading the VNC extension but not being able to
initialize it. This avoids a lot of error prone checking to see
if the extension has started fully or not.
6 years ago
Pierre Ossman
3b03b43017
Call FatalError on fatal exceptions
6 years ago
Pierre Ossman
ce4722f3cd
Move XDesktop specific parameters in to same file
6 years ago
Peter Åstrand (astrand)
0a0e582597
x0vncserver does not support SetDesktopSize; remove -AcceptSetDesktopSize
Add a Configuration::removeParam to support such cases.
6 years ago
Peter Åstrand (astrand)
dcd0b13965
Removed IRIX/Solaris overlay support
Legacy systems.
6 years ago
Peter Åstrand (astrand)
453da22b87
Remove support for Lynx/OS
6 years ago
Peter Åstrand (astrand)
3a1db168af
Added my/Cendio copyright where relevant
6 years ago
Peter Åstrand (astrand)
3abc7d4492
Set the correct cursor when starting
XFixes only reports cursor changes. We must manually call
XFixesGetCursorImage() when starting.
6 years ago
Peter Åstrand (astrand)
3112f50062
Move XDesktop to separate file
Define ledNames in XDesktop.cxx, rename N_LEDS to XDESKTOP_N_LEDS
6 years ago
Peter Åstrand (astrand)
f523ee14c6
Using namespace rfb in header files is a bad idea
6 years ago
Peter Åstrand (astrand)
daba227da6
Build with support for MIT-SHM
No need for ifdefs; we can assume MITSHM. Already done in vncviewer.
6 years ago
Pierre Ossman
e04ad71ca2
Add debug trace when the clipboard changes
6 years ago