Pierre Ossman
69e202a755
Don't ignore .cmake files
They are new modules and not generated files.
4 年之前
Pierre Ossman
d4a1074ff7
Avoid using RegionInit() because of empty rects
It creates an invalid region if given an empty rect. Fortunately
RegionInitBoxes() handles that just fine, so use that instead.
4 年之前
Pierre Ossman
0f4f557396
Stop using legacy region macros
We no longer support such old X servers so start using the current
functions.
4 年之前
Pierre Ossman
f59e9649b0
Handle empty changes for every operation
It seems like many of the X11 operations can end up with no pixels
actually changing. So instead of discovering and adding workarounds for
each individually we'll just check very region added if it's empty.
4 年之前
Мирослав Николић
9a330f9865
Update Serbian translation
4 年之前
Pierre Ossman
c51bb5a415
Update Ubuntu patches for current code
4 年之前
Pierre Ossman
350fb5dc03
Update apt cache before running builds
Otherwise it might fail if the repositories have changed since the image
was generated.
4 年之前
Pierre Ossman
6449ce6a5f
Remove legacy Xorg code
We now require at least 1.16, so remove all code that handled older
versions than that.
4 年之前
Pierre Ossman
e86d8720ba
Remove 8-bit support from documentation
We removed support in the code ages ago, but overlooked this part of the
documentation. Also remove some dead code in Xvnc on the same theme.
4 年之前
Pierre Ossman
d923a3421a
Merge branch 'systemd' of https://github.com/CendioOssman/tigervnc
4 年之前
Pierre Ossman
e05ea21e01
Do maximize more properly on macOS
4 年之前
Pierre Ossman
aaeee37f0a
Don't resize viewer window when maximized
Most window managers won't like this, and it tends to provoke bugs in
FLTK, so let's avoid it. It's probably not what the user wants anyway.
4 年之前
Pierre Ossman
6b938e676b
Include error code in getaddrinfo() exceptions
4 年之前
Pierre Ossman
b0875cadc2
Avoid using insecure variable length arrays
4 年之前
Pierre Ossman
8b4be5fd8e
Merge branch 'unicode_translation' of https://github.com/CendioAlex/tigervnc
4 年之前
Alex Tanskanen
e52923415e
Throw GAIException() for getaddrinfo errors
Created a new subclass of Exception called GAIException() that will
handle error messages from getaddrinfo() instead of letting Exception()
handle it. GAIException() will make use of gai_strerror() to map the
error code to text. On Windows, gai_strerrorW() must be used if the text
is encoded with UTF-8.
4 年之前
Alex Tanskanen
01ca961b0c
Fix typo in SocketException message
4 年之前
Alex Tanskanen
fb8131f7a2
Make system error messeges in Windows 10 use UTF-8
The previous error messages did not support Unicode characters. This
commit will use UTF-8 encoding to be able to display error messages in
every language.
4 年之前
Pierre Ossman
5410f7c57f
Remove support for old Xorg versions
No current distribution ship anything this ancient anyway.
4 年之前
Pierre Ossman
e4f253e1d1
Use standard install dir variable names
This makes our builds directly compatible with most distributions
without packagers/users having to specify extra flags.
5 年之前
Pierre Ossman
7694f9b4aa
Add SELinux policy file for vncsession
Running as a service on a SELinux system requires rules so we can
transition to our own context. We also need the proper permissions
to start new user sessions.
5 年之前
Pierre Ossman
1af1cfdf87
Start sessions via PAM
This sets up a more correct session as there are key tasks that
need to be performed by PAM. E.g. systemd will allocate cgroups
and start base services.
In order to easily handle this as a system service the mapping of
displays is now done via a configuration file.
5 年之前
Pierre Ossman
7996059455
Fix C linking when doing static builds
5 年之前
Pierre Ossman
d80817f101
Make PAM mandatory
It is present on all UNIX systems anyway, so let's simplify things.
We will need it for more proper session startup anyway.
5 年之前
Pierre Ossman
a92aec4fbb
Stop searching for Xvnc
Assume we are part of a complete and proper installation and encode the
full expected path in to the vncserver script.
4 年之前
Pierre Ossman
c67a5f2557
Start the sessions using xinit
It keeps much better track of the X server and startup files than
we can do.
5 年之前
Pierre Ossman
c24a9a5d8c
Make vncserver always run in the foreground
We need to be started as a system service for things to work correctly
anyway, so delegate the work of starting and stopping things to the
system service manager (e.g. systemd).
5 年之前
Pierre Ossman
537a39373c
Start sessions using session desktop file
This is how display managers (e.g. gdm or lightdm) start sessions
and is necessary to get the proper set of environment variables.
5 年之前
Pierre Ossman
a290ab8e28
Don't create a default user config
We don't want to create files in the users home directory unless we
have to. Users can read about how this file works in our man pages.
5 年之前
Pierre Ossman
1a4ebd8e72
Don't accept arbitrary arguments to vncserver
We now have config files for more fine grained control of these
things, so avoid duplicating the functionality.
5 年之前
Pierre Ossman
c68196700e
Stop unsetting environment variables
These might contain values we want if we are start from a proper
environment.
5 年之前
Pierre Ossman
df25ae4119
Always install systemd services
It is the most common init system these days so it should not be
hidden in the contrib/ directory.
This also removes all old SysV files from the contrib packages.
6 年之前
Pierre Ossman
ebaa948e46
Add default configuration files
Install some example files to make things more easily discoverable.
5 年之前
Pierre Ossman
bb8d82ad3c
Remove old distribution packaging
These are EOL (or soon to be) and we want to start relying on things
present in current distributions.
4 年之前
Pierre Ossman
bc1fc22df1
Merge branch 'xorg-server-1.20.7' of https://github.com/lheckemann/tigervnc
4 年之前
Pierre Ossman
1688e8cd57
Fix error check for zlib calls
There are multiple "okay" return values, not just Z_OK. Make sure we
don't bail out needlessly.
4 年之前
Pierre Ossman
ea85e8b32b
Fix framebuffer setup in encperf
We adapted to the wrong new callback in a previous commit.
4 年之前
Pierre Ossman
954ad21da2
Provide dummy output for dummy client connections
The CConnection base class wants to be able to write things these days,
so we need to provide it a place to do so.
4 年之前
Samuel Mannehed
2b45fb3950
Merge pull request #958 from sequencer/env_userpass
Read username and passwrod from env.
4 年之前
Jiuyang liu
d68c64e669
bug fix for user is NULL
4 年之前
Jiuyang liu
34435ea135
add man
4 年之前
Jiuyang liu
38f0d2c389
implement username/password from env.
4 年之前
Linus Heckemann
920d9c4d65
xserver: add no-op input thread init function
This allows Xvnc to build with xorg-server 1.20.7, which requires OS
layers to implement a ddxInputThreadInit function when configured with
--enable-input-thread (the default).
relevant xorg-server commit: e3f26605d8
4 年之前
Pierre Ossman
57da16bbcf
Include Carbon when statically linking gettext on macOS
As gettext needs some stuff from Carbon and we don't want to rely on it
being pulled in as a side effect.
4 年之前
Pierre Ossman
6d39667c42
Update copyright year to 2020
4 年之前
Pierre Ossman
da89c40be6
Merge branch 'emulateMB' of https://github.com/CendioAlex/tigervnc
4 年之前
Pierre Ossman
4e58ac18af
Use sys/time.h on Windows as well
Modern MinGW seems to provide this, so simplify things a bit. This also
side steps some of the issue of the windows.h/winsock2.h include
ordering.
4 年之前
Alex Tanskanen
bab9d1fa18
Add emulated middle mouse button
Not every mouse has three buttons e.g. laptops. Some OS might not
have support for middle mouse button emulation.
This commit adds emulation for middle mouse button when pressing both
left and right mouse button simultaneously.
4 年之前
Alex Tanskanen
b9b7f68b40
Remove "Dismiss menu" from context menu
This was not necessary since you could use ESC key or simply just
clicking outside of the context menu to close the menu.
4 年之前
Pierre Ossman
81e114f29f
Allow XK_Scroll_Lock when LED state isn't supported
Otherwise such clients cannot use Scroll Lock at all, and that is
probably worse than any effects we might get from getting out of sync.
4 年之前