Commit Graph

4708 Commits

Author SHA1 Message Date
Pierre Ossman
9752315da0 Validate translations during build
Incorrect format strings can cause crashes, so we want to catch those
early.
2021-04-26 09:36:46 +02:00
Vangelis Skarmoutsos
5ac3a308fb Update Greek translation 2021-04-26 09:27:40 +02:00
Pierre Ossman
0946e29807 Maintain static screen DPI on resize
Trying to dynamically track the DPI did not really work as we'd
start accumulating errors and eventually the DPI would start to
drift. Instead maintain a fixed, sensible DPI at all times.
2021-04-08 15:43:28 +02:00
Lauri Nurmi
5ff62b4558 Update Finnish translation 2021-03-24 14:19:17 +01:00
Samuel Mannehed
06e5380903
Fix typo in README
Thanks @Raulkumar for finding this in #1118
2021-03-22 09:21:00 +01:00
Brian P. Hinz
89f6d5aed0 Create VNC homedir if it doesn't already exist 2021-03-11 20:00:15 -05:00
Brian P. Hinz
91fccb66b9 Fix for issue 1215 2021-03-11 19:31:57 -05:00
Brian P. Hinz
2be74db342 Fix for issue 1216 2021-03-11 19:17:30 -05:00
Pierre Ossman
41bf43b0b9 Merge branches 'vmware-cursor-position' and 'vmware-cursor-position-vncviewer' of https://github.com/lhchavez/tigervnc 2021-03-11 15:54:09 +01:00
lhchavez
51f10f7c83 Support the VMware Cursor Position extension on vncviewer
This change makes it possible for re-synchronizing the remote cursor on
the vncviewer when in fullscreen mode. This is done by locally moving
the cursor position to what the server thinks it should be.

Now SDL games should work!
2021-03-11 05:15:46 -08:00
Pierre Ossman
cd2a882e53 Fix logging in daemonized tl-session
stderr has been redirected to /dev/null so all logging needs to go to
syslog.
2021-03-11 10:00:05 +01:00
lhchavez
cb8629a213 Add support for notifying clients about pointer movements
This change adds support for the VMware Mouse Position
pseudo-encoding[1], which is used to notify VNC clients when X11 clients
call `XWarpPointer()`[2]. This function is called by SDL (and other
similar libraries)  when they detect that the server does not support
native relative motion, like some RFB clients.

With this, RFB clients can choose to adjust the local cursor position
under certain circumstances to match what the server has set. For
instance, if pointer lock has been enabled on the client's machine and
the cursor is not being drawn locally, the local position of the cursor
is irrelevant, so the RFB client can use what the server sends as the
canonical absolute position of the cursor. This ultimately enables the
possibility of games (especially FPS games) to behave how users expect
(if the clients implement the corresponding change).

Part of: #619

1: https://github.com/rfbproto/rfbproto/blob/master/rfbproto.rst#vmware-cursor-position-pseudo-encoding
2: https://tronche.com/gui/x/xlib/input/XWarpPointer.html
3: https://hg.libsdl.org/SDL/file/28e3b60e2131/src/events/SDL_mouse.c#l804
2021-03-02 08:36:53 -08:00
Pierre Ossman
0c8b68f88e Specify HOWTO.md in spec files
Or rpmbuild gets grumpy.
2021-03-02 14:41:08 +01:00
Pierre Ossman
736a4dc15c Revert "Support TCP_NOPUSH as alternative to TCP_CORK"
This reverts commit d6e39658ae. Apparently
this is broken on macOS so it's not something we can make use of.
2021-03-02 14:36:12 +01:00
Pierre Ossman
706ca2f903 Merge branch 'documentation' of https://github.com/grulja/tigervnc 2021-03-02 13:30:11 +01:00
Pierre Ossman
daeff52b1e Fix some incorrect data waits
Some of these were incorrectly calculated so the server or client would
wait too long before proceeding with decoding.

Change all of these to be a more explicit calculation to avoid such
issues in the future.
2021-03-02 13:16:34 +01:00
Pierre Ossman
d6e39658ae Support TCP_NOPUSH as alternative to TCP_CORK
TCP_CORK is a Linux thing and BSD has TCP_NOPUSH instead.
2021-03-02 13:15:35 +01:00
Pierre Ossman
bb4d1e5c2c Add missing headers for TCP_CORK
We didn't include the proper headers to get the correct define, so
corking was never enabled.
2021-03-02 13:14:50 +01:00
Jan Grulich
5e07d538a0 Add documentation to the new systemd support 2021-03-02 08:40:36 +01:00
Pierre Ossman
18cc324543 Drop other selection on ownership change
Otherwise we might end up owners of something we cannot deliver data on,
which can hang applications.
2021-03-01 15:46:35 +01:00
Yaron Shahrabani
c0b504f3e9 Add Hebrew translation 2021-02-11 10:15:02 +01:00
Pierre Ossman
d259bff068 Merge branch 'allow-tcp-and-unix' of https://github.com/jlesage/tigervnc 2021-02-09 09:01:22 +01:00
Jocelyn Le Sage
701605e424 Added the ability to listen on both Unix socket and TCP port.
Setting `rfbport` to `-1` disables TCP port listening.
2021-02-04 08:13:48 -05:00
Pierre Ossman
35b4eedc87 Merge branch 'autoclip' of https://github.com/CendioOssman/tigervnc 2021-02-03 09:35:44 +01:00
Pierre Ossman
7f56b5481c Fix overloaded function signature 2021-01-26 10:38:09 +01:00
Pierre Ossman
45c9d9c0f8 Remove unused attributes 2021-01-26 10:37:44 +01:00
Pierre Ossman
6bc7ae91ff Update copyright year to 2021 2021-01-25 14:04:12 +01:00
Pierre Ossman
31f18bb357 Heavily reduce window for bandwidth estimate
It took way too long to converge on a sane value, so reduce the window
by a factor of ten. This seems to work smoothly.
2021-01-19 13:45:16 +01:00
Pierre Ossman
59d5bc4095 Merge branch 'noblock' of https://github.com/CendioOssman/tigervnc 2021-01-19 13:45:06 +01:00
Pierre Ossman
edaf70bd36 Add link to discussion groups from issues
So that people can easily find them and not file bug reports for
things that are just questions.
2021-01-15 16:21:20 +01:00
Pierre Ossman
e53e276808 Hide link to create blank issues
We want users to use the templates so we don't miss any relevant
information.
2021-01-15 16:18:45 +01:00
Pierre Ossman
6d1603c3da Fix handling of bad update requests
We computed a safe area if a client gave us a bogus one, but we didn't
actually use it. Fix this properly and make sure we don't pass on bad
coordinates further.
2021-01-14 13:07:56 +01:00
Pierre Ossman
16e39980dc Merge branch 'master' of https://github.com/johahauf/tigervnc 2021-01-12 16:14:36 +01:00
Johannes
eefe28d485 Have a history of used vnc servers to select from in the vncviewer 2021-01-11 22:46:26 +01:00
Pierre Ossman
49122f6dcc Update desktop if clipboard client goes away
So the current clipboard state is properly reflected in the desktop
session.
2021-01-05 10:26:10 +01:00
Pierre Ossman
d6612d8d42 Add debug logging for ignored clipboard events 2021-01-05 10:25:54 +01:00
Pierre Ossman
513cb8bc94 Fix clipboard state tracking in server
This was out of sync with the client handling for no good reason.
2021-01-05 10:25:17 +01:00
Pierre Ossman
b892613582 Handle clipboard peek with missing data
The peer expects a response, so we should also be able to respond that
there is no clipboard data currently available.
2021-01-05 10:24:18 +01:00
Pierre Ossman
07935033b5 Improve clipboard debug logging in viewer 2021-01-04 13:17:40 +01:00
Pierre Ossman
1ea0f9f210 Handle unsolicited clipboard transfers
The extended clipboard protocol has the ability for the peer to request
things to be sent automatically, without a request message. Make sure we
honor such settings.
2021-01-04 13:04:26 +01:00
Pierre Ossman
3a7fd223a2 Log client/server clipboard capabilities 2021-01-04 13:01:55 +01:00
Brian P. Hinz
2a0eabec31 Add packages for CentOS 8 2020-12-19 21:18:01 -05:00
Brian P. Hinz
1eb0f86fb2 Initial support for ubuntu focal 2020-12-19 16:46:00 -05:00
Pierre Ossman
a3d7d7d4ef Map macOS Eisu key to XK_Eisu_toggle
It's a better match for what the key symbolises, even though it is not
as common on Unix systems. But we want to avoid getting in to tailoring
things for any one specific input method implementation.
2020-12-09 15:57:05 +01:00
Pierre Ossman
7990ddaf06 Merge branches 'japanese_layout' and 'win_japanese_keyboard' of https://github.com/gsittyz/tigervnc 2020-12-09 15:56:07 +01:00
Pierre Ossman
eb13d1be68 Fix bad library references for some static deps 2020-12-07 12:34:03 +01:00
Pierre Ossman
d484001e97 Add comment why unistring is linked dynamically 2020-12-07 12:33:50 +01:00
Pierre Ossman
b2b265a183 Remove bogus strncpy() calls
We don't know the size of the output buffer here and giving the input
string size is just confusing and upsets the compiler in some cases.
2020-12-07 12:28:07 +01:00
Pierre Ossman
25d3167e81 Merge branch 'master' of https://github.com/mriphysicist/tigervnc 2020-12-07 12:23:34 +01:00
Pierre Ossman
d43c1b3cc1 Change to user's home directory before starting session
This is what display managers do, so it is expected by many
environments.
2020-12-04 14:34:43 +01:00