]> source.dussan.org Git - tigervnc.git/log
tigervnc.git
2 years agoUse pkg-config for pixman
Pierre Ossman [Mon, 30 May 2022 08:02:05 +0000 (10:02 +0200)]
Use pkg-config for pixman

This is the standard method of finding it on Unix systems, so make sure
we use it. Still keep a fallback, though, for other systems, e.g.
Windows.

2 years agoAdd target_link_directory() compat function
Pierre Ossman [Sat, 4 Jun 2022 12:19:07 +0000 (14:19 +0200)]
Add target_link_directory() compat function

We need this function to deal with pkgconfig files properly, but
unfortunately it doesn't exist until CMake 3.13, and we need to support
CMake 3.10. So add a hacky compatibility function for older systems.

2 years agoAvoid temporary cmake variables
Pierre Ossman [Fri, 3 Jun 2022 13:44:32 +0000 (15:44 +0200)]
Avoid temporary cmake variables

Modern cmake has better support for adding source files and libraries
incrementally, so let's use that to clean things up.

2 years agoRemove zlib copyright notice
Pierre Ossman [Thu, 12 May 2022 12:55:46 +0000 (14:55 +0200)]
Remove zlib copyright notice

Our embedded zlib got removed way back in cc8c6a2.

2 years agoMerge branch 'icons' of https://github.com/CendioOssman/tigervnc
Pierre Ossman [Wed, 11 May 2022 11:23:26 +0000 (13:23 +0200)]
Merge branch 'icons' of https://github.com/CendioOssman/tigervnc

2 years agoAdjust icon margins and rounding 1467/head
Pierre Ossman [Wed, 11 May 2022 10:43:27 +0000 (12:43 +0200)]
Adjust icon margins and rounding

Reduce the icon margins a bit to conform better with other icons. Also
dial back the rounding a bit, again to fit better with other programs.

2 years agoAutomatically generate macOS icon file
Pierre Ossman [Wed, 11 May 2022 10:42:18 +0000 (12:42 +0200)]
Automatically generate macOS icon file

2 years agoAutomatically generate Windows icon file
Pierre Ossman [Wed, 11 May 2022 10:39:58 +0000 (12:39 +0200)]
Automatically generate Windows icon file

2 years agoAdd more Unix icon sizes
Pierre Ossman [Wed, 11 May 2022 08:17:50 +0000 (10:17 +0200)]
Add more Unix icon sizes

Some desktop environment, like KDE, need more rastered sizes and cannot
make use of the SVG.

2 years agoAvoid duplicating list of icon sizes
Pierre Ossman [Wed, 11 May 2022 08:00:01 +0000 (10:00 +0200)]
Avoid duplicating list of icon sizes

2 years agoRemove redundant icon installation
Pierre Ossman [Wed, 11 May 2022 07:34:25 +0000 (09:34 +0200)]
Remove redundant icon installation

This is already done by vncviewer, so we don't need any rule here.

2 years agoSimplify icon generation
Pierre Ossman [Wed, 11 May 2022 07:30:23 +0000 (09:30 +0200)]
Simplify icon generation

Have the padding included in the SVGs to make the rules less complex.

2 years agoRemove dead code
Pierre Ossman [Wed, 11 May 2022 07:16:42 +0000 (09:16 +0200)]
Remove dead code

This code is never used on Windows, so remove it.

2 years agoSafer allocation of icon array
Pierre Ossman [Wed, 11 May 2022 07:16:01 +0000 (09:16 +0200)]
Safer allocation of icon array

Avoid the risk of the list of sizes and the list of icons getting out of
sync and causing memory corruption.

2 years agoMerge pull request #1463 from TigerVNC/accessRightsFixes
Samuel Mannehed [Mon, 2 May 2022 06:43:34 +0000 (08:43 +0200)]
Merge pull request #1463 from TigerVNC/accessRightsFixes

Minor fixes/future-proofing for SConnection::accessCheck() and 'accessRights'

2 years agoAssert that accessCheck isn't called too early 1463/head
Samuel Mannehed [Fri, 29 Apr 2022 08:18:47 +0000 (10:18 +0200)]
Assert that accessCheck isn't called too early

These checks depend on accessRights being set up, this has only happened
if we have done the QUERYING steps.

2 years agoInitialize SConnection's accessRights
Samuel Mannehed [Fri, 29 Apr 2022 08:17:02 +0000 (10:17 +0200)]
Initialize SConnection's accessRights

Properties should be initialized in order to avoid random values in
case they are used earlier than expected.

2 years agoAdd Georgian translation
Temuri Doghonadze [Mon, 18 Apr 2022 04:01:00 +0000 (06:01 +0200)]
Add Georgian translation

2 years agoUpdate Spanish translation
Cristian Othón Martínez Vera [Wed, 6 Apr 2022 16:48:00 +0000 (11:48 -0500)]
Update Spanish translation

2 years agoFix bad indentation in CConn::socketEvent()
Pierre Ossman [Wed, 6 Apr 2022 13:47:49 +0000 (15:47 +0200)]
Fix bad indentation in CConn::socketEvent()

2 years agoIgnore socket whilst processing data
Pierre Ossman [Wed, 6 Apr 2022 13:45:36 +0000 (15:45 +0200)]
Ignore socket whilst processing data

FLTK has a lot of synchronous stuff (like dialogs), which mean that the
main loop might be run recursively in some cases. If there is data
available on our socket then CConn::socketEvent() will be called
constantly in a busy loop.

Avoid this by removing socket notifications whilst we are processing
data.

2 years agoEnable stream sanity checks in debug builds
Pierre Ossman [Wed, 6 Apr 2022 13:38:45 +0000 (15:38 +0200)]
Enable stream sanity checks in debug builds

Enable this automatically for developers so we increase the chance of
these problems getting caught. There is a risk of overhead though so
keep them disabled for release builds.

2 years agoDon't trust GNUTLS_E_AGAIN
Pierre Ossman [Wed, 6 Apr 2022 13:23:50 +0000 (15:23 +0200)]
Don't trust GNUTLS_E_AGAIN

Unfortunately this error can be given by GnuTLS even though the
underlying stream still has data available. So stop trusting this value
and keep track of the underlying stream explicitly.

2 years agoPrint GnuTLS certificate status as hex
Pierre Ossman [Thu, 24 Mar 2022 13:06:05 +0000 (14:06 +0100)]
Print GnuTLS certificate status as hex

It's a bit field so it's easier to decode in hex.

2 years agoAllow exceptions for expired certificates
Pierre Ossman [Thu, 24 Mar 2022 13:03:47 +0000 (14:03 +0100)]
Allow exceptions for expired certificates

The browsers allow users to make an exception for expired certificates,
so we should probably also.

2 years agoMake sure server name is always a valid string
Pierre Ossman [Thu, 24 Mar 2022 13:02:57 +0000 (14:02 +0100)]
Make sure server name is always a valid string

Otherwise we can get crashes on NULL dereference. This should only
happen on reverse connections where we don't have a server address.

2 years agoChange vncsession startup error message
Pierre Ossman [Fri, 11 Mar 2022 07:31:25 +0000 (08:31 +0100)]
Change vncsession startup error message

We need to get to the point of starting the session script before we
consider things a success. So this can fail in many different ways, not
just the daemonization. Adjust the error message to something more
generic to reflect this.

2 years agoMerge branch 'feature/appstream-vncviewer' of https://github.com/JoachimFalk/tigervnc
Pierre Ossman [Thu, 10 Mar 2022 15:43:22 +0000 (16:43 +0100)]
Merge branch 'feature/appstream-vncviewer' of https://github.com/JoachimFalk/tigervnc

2 years agoAdded AppStream meta info file for the vncviewer 1415/head
Joachim Falk [Sat, 19 Feb 2022 23:06:38 +0000 (00:06 +0100)]
Added AppStream meta info file for the vncviewer

2 years agoFix compilation issue. 1436/head
Chris [Mon, 28 Feb 2022 17:59:15 +0000 (12:59 -0500)]
Fix compilation issue.

Ubuntu 20.04
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
libx264-dev:amd64 2:0.155.2917+git0a84d98-2

[ 11%] Building CXX object common/rfb/CMakeFiles/rfb.dir/H264LibavDecoderContext.cxx.o
tigervnc/common/rfb/H264LibavDecoderContext.cxx: In member function ‘virtual bool rfb::H264LibavDecoderContext::initCodec()’:
tigervnc/common/rfb/H264LibavDecoderContext.cxx:50:40: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
   50 |   AVCodec *codec = avcodec_find_decoder(AV_CODEC_ID_H264);
      |                    ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
      |                                        |
      |                                        const AVCodec*
make[2]: *** [common/rfb/CMakeFiles/rfb.dir/build.make:895: common/rfb/CMakeFiles/rfb.dir/H264LibavDecoderContext.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:597: common/rfb/CMakeFiles/rfb.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

2 years agoSwitch to CentOS Stream 8 for builds 1430/head
Pierre Ossman [Fri, 18 Feb 2022 08:11:15 +0000 (09:11 +0100)]
Switch to CentOS Stream 8 for builds

CentOS 8 is EOL and is now replaced with CentOS Stream 8.

This images isn't available on Docker Hub unfortunately, so we grab it
from Quay.

2 years agoSELinux: use /root/.vnc in file context specification 1426/head
Zdenek Pytela [Mon, 7 Feb 2022 09:45:41 +0000 (10:45 +0100)]
SELinux: use /root/.vnc in file context specification

Instead of HOME_ROOT/.vnc, /root/.vnc should be used
for user root's home to specify default file context
as HOME_ROOT actually means base for home dirs (usually /home).

2 years agoFix for reflection warnings for strongly encapsulated Desktop methods in Java > 9
Brian P. Hinz [Sat, 29 Jan 2022 20:56:34 +0000 (15:56 -0500)]
Fix for reflection warnings for strongly encapsulated Desktop methods in Java > 9

2 years agoFix for #1414
Brian P. Hinz [Sat, 29 Jan 2022 18:40:28 +0000 (13:40 -0500)]
Fix for #1414

2 years agoAdded screenshots for AppStream meta info file for vncviewer
Joachim Falk [Fri, 28 Jan 2022 17:04:45 +0000 (18:04 +0100)]
Added screenshots for AppStream meta info file for vncviewer

2 years agoget rid of c++11 stuff 1419/head
Vladimir Sukhonosov [Tue, 25 Jan 2022 19:14:00 +0000 (22:14 +0300)]
get rid of c++11 stuff

2 years agoImprove logging around screen resizing
Pierre Ossman [Tue, 25 Jan 2022 08:56:31 +0000 (09:56 +0100)]
Improve logging around screen resizing

Avoid duplication, and add logging for some more error conditions so
it's possible to see in the logs why a resize has failed or produced
unexpected results.

2 years agoRemove 32-/64-bit distinctions
Pierre Ossman [Fri, 21 Jan 2022 15:40:43 +0000 (16:40 +0100)]
Remove 32-/64-bit distinctions

The migration from 32-bit to 64-bit has long passed. Let's get rid of
all distinctions as native applications it the norm now.

2 years agoUpdate packaging section of BUILDING.txt
Pierre Ossman [Fri, 21 Jan 2022 15:29:48 +0000 (16:29 +0100)]
Update packaging section of BUILDING.txt

This is obviously not maintained, so let's be more generic in the
document.

2 years agoMerge branch 'h264dec' of https://github.com/xornet-sl/tigervnc
Pierre Ossman [Fri, 21 Jan 2022 15:15:39 +0000 (16:15 +0100)]
Merge branch 'h264dec' of https://github.com/xornet-sl/tigervnc

2 years agoLog objects should be local
Pierre Ossman [Fri, 21 Jan 2022 15:15:05 +0000 (16:15 +0100)]
Log objects should be local

Otherwise things might be logged under the wrong label.

2 years agosupport H264 decoding with MediaFoundation on Windows 1194/head
Mārtiņš Možeiko [Fri, 21 Jan 2022 05:00:48 +0000 (08:00 +0300)]
support H264 decoding with MediaFoundation on Windows

2 years agoH264 Decoder
Vladimir Sukhonosov [Fri, 21 Jan 2022 04:59:02 +0000 (07:59 +0300)]
H264 Decoder

Linux implementation using ffmpeg

2 years agoAlways log screen layout if validation fails 1411/head
William Sjöblom [Wed, 19 Jan 2022 10:22:07 +0000 (11:22 +0100)]
Always log screen layout if validation fails

Unconditionally log the erroneous screen layout if it fails to
validate to simplify debugging.

2 years agoFix session resize after mirroring on Linux vncviewer
William Sjöblom [Wed, 19 Jan 2022 09:04:53 +0000 (10:04 +0100)]
Fix session resize after mirroring on Linux vncviewer

If monitor mirroring was enabled while in a session with vncviewer
running on Linux, the session would not be properly resized on the
server. This was a consequence of only looking at the size and
coordinates of each screen when matching against existing screens after
the screen layout was changed, when in fact we have two (or more)
monitors with the same coordinates and size (but differing ids). This
led to the same monitor being added twice to the layout which would
later fail layout validation, resulting in no resize request being sent
to the server.

When matching, we now also check if the existing screen is not already
present in the layout before considering it a match.

2 years agoFix handling of VMware cursors
Pierre Ossman [Tue, 18 Jan 2022 12:38:41 +0000 (13:38 +0100)]
Fix handling of VMware cursors

This is a regression from ad0f061. If a VMware cursor rect was split up
over multiple read()s then the stream would become corrupted as we set
the restore point at the wrong place.

2 years agoMerge branch 'selinux-restorecon' of https://github.com/grulja/tigervnc
Pierre Ossman [Thu, 13 Jan 2022 12:46:27 +0000 (13:46 +0100)]
Merge branch 'selinux-restorecon' of https://github.com/grulja/tigervnc

2 years agoSELinux: restore SELinux context in case of different policies 1372/head
Jan Grulich [Thu, 11 Nov 2021 12:52:41 +0000 (13:52 +0100)]
SELinux: restore SELinux context in case of different policies

2 years agoImprove full-screen workaround on connect
Pierre Ossman [Wed, 12 Jan 2022 16:44:20 +0000 (17:44 +0100)]
Improve full-screen workaround on connect

If we've explicitly requested a position (using -geometry) then we were
still triggering legacy full-screen request logic. This is very counter
intuitive as having a position that doesn't align with a monitor should
disqualify us for that.

It turns out that at least marco (and probably everything
metacity-derived) ends up ignoring the requested position and we go back
to triggering the legacy logic again.

Work around this by assuming that the window manager will adjust our
initial position and don't consider that in the workaround logic.

2 years agoMerge pull request #1405 from TigerVNC/monitorArrangementSync
Samuel Mannehed [Mon, 10 Jan 2022 15:44:32 +0000 (16:44 +0100)]
Merge pull request #1405 from TigerVNC/monitorArrangementSync

Update MonitorArrangement widget to match parameter settings after screen configuration change

2 years agoUpdate MonitorArrangement widget after change 1405/head
Samuel Mannehed [Fri, 7 Jan 2022 17:46:17 +0000 (18:46 +0100)]
Update MonitorArrangement widget after change

If the options dialog was open when a screen configuration happened the
widget could get out of sync from the settings. A scenario when this
happened was:

 1) 3 monitors, fullscreen selected on the two right-most screens
 2) disconnect the left-most screen (the one not selected)

In this case, using GNOME, vncviewer would appear in fullscreen on the
right of the two remaining monitors, but the widget would show both
monitors selected. The reason was that the MonitorArragement index
doesn't work the same way as FLTK's screen index.

It's debatable how vncviewer should behave here, but the GUI should at
least match the actual setting.

2 years agoProperly set XDG_CURRENT_DESKTOP
Pierre Ossman [Mon, 10 Jan 2022 08:34:19 +0000 (09:34 +0100)]
Properly set XDG_CURRENT_DESKTOP

There is no such thing as XDG_DESKTOP_NAMES.

2 years agoUpdate copyright year to 2022
Pierre Ossman [Wed, 5 Jan 2022 08:15:22 +0000 (09:15 +0100)]
Update copyright year to 2022

2 years agoDon't add . to error message string
Pierre Ossman [Tue, 4 Jan 2022 10:02:01 +0000 (11:02 +0100)]
Don't add . to error message string

The norm is to have error strings without punctiation, so avoid adding
one as it just confuses the translators.

2 years agoAvoid creating windows larger than current monitor
Pierre Ossman [Thu, 30 Dec 2021 12:04:59 +0000 (13:04 +0100)]
Avoid creating windows larger than current monitor

Many window managers don't have proper logic to restrict the window size
to something sane, so we have to take care of that ourselves.

2 years agoDon't move window in full-screen workaround
Pierre Ossman [Thu, 30 Dec 2021 12:03:46 +0000 (13:03 +0100)]
Don't move window in full-screen workaround

If this is done before the window is shown then it can accidentally
override the window manager's placement of the window. Reducing the size
should be sufficient to avoid trigger a full-screen request.

2 years agoBe consistent in including config.h
Pierre Ossman [Thu, 30 Dec 2021 09:20:13 +0000 (10:20 +0100)]
Be consistent in including config.h

The generally recommended way is to include it from source files, not
headers. We had a mix of both. Let's try to be consistent and follow the
recommended way.

2 years agoOnly restore level if it is wrong
Pierre Ossman [Thu, 30 Dec 2021 09:16:45 +0000 (10:16 +0100)]
Only restore level if it is wrong

Tweak the workaround from 9023a2e so that it only triggers if there
actually is a problem to fix. This is important since changing levels
also has the side effect of raising the window to the top of the level.

2 years agoRelicense MonitorArrangement widget
Pierre Ossman [Mon, 27 Dec 2021 11:29:59 +0000 (12:29 +0100)]
Relicense MonitorArrangement widget

This was designed as a general FLTK widget and we want to encourage
others to use it and improve it. So relicense these particular files in
a way that allows it to be used by anyone using FLTK.

As part of this we need to stop using other parts of TigerVNC as that
code is still covered by the GPL.

2 years agoAvoid leaking overlay memory
Pierre Ossman [Thu, 23 Dec 2021 15:06:14 +0000 (16:06 +0100)]
Avoid leaking overlay memory

Fl_RGB_Image doesn't take ownership of the pixel data, so we have to
explicitly free this as well once we are done.

2 years agoHandle empty lines in server history
Pierre Ossman [Thu, 23 Dec 2021 15:00:20 +0000 (16:00 +0100)]
Handle empty lines in server history

2 years agoFix typo in mirror monitor detection
Pierre Ossman [Thu, 23 Dec 2021 14:58:00 +0000 (15:58 +0100)]
Fix typo in mirror monitor detection

Bug introduced in fb561eb but still somehow passed manual testing.
Resulted in some stray reads off the end of the stack, which were
hopefully harmless.

2 years agoBe more paranoid about monitor info
Pierre Ossman [Thu, 23 Dec 2021 13:50:35 +0000 (14:50 +0100)]
Be more paranoid about monitor info

These function are not guaranteed to succeed, and we've had reports that
they fail on ARM. So make sure we more properly check return values.

2 years agoUpdate Serbian translation
Мирослав Николић [Mon, 13 Dec 2021 16:27:00 +0000 (18:27 +0200)]
Update Serbian translation

2 years agoMerge branch 'display' of https://github.com/CendioOssman/tigervnc
Pierre Ossman [Fri, 10 Dec 2021 12:53:56 +0000 (13:53 +0100)]
Merge branch 'display' of https://github.com/CendioOssman/tigervnc

2 years agoAdd headings/groups for options 1390/head
Pierre Ossman [Fri, 10 Dec 2021 09:38:20 +0000 (10:38 +0100)]
Add headings/groups for options

Try to be more consistent that related options should have a group box
around them.

2 years agoRename "Screen" tab to "Display"
Pierre Ossman [Fri, 10 Dec 2021 09:22:54 +0000 (10:22 +0100)]
Rename "Screen" tab to "Display"

This is what pretty much everyone else calls these kind of settings, so
let's change so users feel familiar.

2 years agoSimplify screen settings
Pierre Ossman [Fri, 10 Dec 2021 09:05:25 +0000 (10:05 +0100)]
Simplify screen settings

Try to focus on the commonly used settings here in order to keep things
understandable. The uncommon settings will need to be specified as
command line arguments instead.

2 years agoAdd comments to stored parameters list
Pierre Ossman [Thu, 9 Dec 2021 15:53:22 +0000 (16:53 +0100)]
Add comments to stored parameters list

Clarify what this list is used for, and organize it so it is easier to
match to the options dialog.

2 years agoDocument raised CMake requirement
Pierre Ossman [Sat, 27 Nov 2021 15:55:47 +0000 (16:55 +0100)]
Document raised CMake requirement

We raised the requirement in cb3c78f but forgot to update the
documentation.

2 years agoxserver21.1.1.patch: Add Xorg 21 patch 1383/head
Joakim Tjernlund [Fri, 26 Nov 2021 10:15:21 +0000 (11:15 +0100)]
xserver21.1.1.patch: Add Xorg 21 patch

2 years agoxvnc: adapt for 1.21
Joakim Tjernlund [Wed, 24 Nov 2021 20:10:56 +0000 (21:10 +0100)]
xvnc: adapt for 1.21

VENDOR_STRING is gone as is DEFAULT_LOG_VERBOSITY
site.h has been removed and is not needed.

2 years agoxorg-version.h: Increase supported Xorg version to 1.21
Joakim Tjernlund [Wed, 24 Nov 2021 20:09:36 +0000 (21:09 +0100)]
xorg-version.h: Increase supported Xorg version to 1.21

2 years agoMerge pull request #1382 from williamsjoblom/master
Samuel Mannehed [Wed, 24 Nov 2021 13:41:37 +0000 (14:41 +0100)]
Merge pull request #1382 from williamsjoblom/master

Be consistent in "full screen" and "full-screen" use

2 years agoBe consistent in "full screen" and "full-screen" use 1382/head
William Sjöblom [Wed, 24 Nov 2021 11:55:44 +0000 (12:55 +0100)]
Be consistent in "full screen" and "full-screen" use

Previously, there were a number of inconsistencies in the use of
"full-screen" and "full screen" in logs, documentation, and user
interfaces. The consensus seems to be that "full screen" is correct when
used as a noun while "full-screen" is correct when used as an
adjective. These inconsistencies have now been adjusted to follow
consensus.

3 years agoMerge pull request #1380 from williamsjoblom/master
Samuel Mannehed [Tue, 23 Nov 2021 10:09:12 +0000 (11:09 +0100)]
Merge pull request #1380 from williamsjoblom/master

Deduplicate vncviewer error messages

3 years agoDeduplicate vncviewer error messages 1380/head
William Sjöblom [Mon, 22 Nov 2021 16:36:35 +0000 (17:36 +0100)]
Deduplicate vncviewer error messages

vncviewer previously had a the same localized error message duplicated
on a bunch of places. Pull these duplicates out into a single function.

3 years agoFix formatting of -rfbport in man pages
Pierre Ossman [Tue, 9 Nov 2021 11:24:03 +0000 (12:24 +0100)]
Fix formatting of -rfbport in man pages

3 years agoUpdate French translation
Stéphane Aulery [Sun, 7 Nov 2021 16:52:00 +0000 (17:52 +0100)]
Update French translation

3 years agoMerge branch 'cmake' of https://github.com/CendioOssman/tigervnc
Pierre Ossman [Fri, 5 Nov 2021 12:54:46 +0000 (13:54 +0100)]
Merge branch 'cmake' of https://github.com/CendioOssman/tigervnc

3 years agoRaise CMake requirement to 3.10 1366/head
Pierre Ossman [Fri, 5 Nov 2021 11:53:11 +0000 (12:53 +0100)]
Raise CMake requirement to 3.10

It's difficult to support both old and new versions, so raise the
requirement to the oldest that is commonly used, which is CMake 3.10.2
on Ubuntu 18.04.

3 years agoDon't specify SOURCE in custom targets
Pierre Ossman [Fri, 5 Nov 2021 12:06:07 +0000 (13:06 +0100)]
Don't specify SOURCE in custom targets

They don't really contribute to anything as the command line is fixed,
and it makes CMake 3.20+ upset since it cannot find that file and
instead thinks we meant maketarball.in (CMP0115).

3 years agoDrop Ubuntu 16.04 from builds
Pierre Ossman [Fri, 5 Nov 2021 11:50:59 +0000 (12:50 +0100)]
Drop Ubuntu 16.04 from builds

This version of Ubuntu is no longer fully supported so let's stop caring
about builds there.

3 years agoLog decoding stats on disconnect
Pierre Ossman [Thu, 4 Nov 2021 08:16:00 +0000 (09:16 +0100)]
Log decoding stats on disconnect

Can be helpful to see what encodings were actually used during a
connection, and how they performed.

3 years agoIncrease maximum input buffer
Pierre Ossman [Thu, 4 Nov 2021 08:01:08 +0000 (09:01 +0100)]
Increase maximum input buffer

macOS' built in VNC server unfortunately sends the entire monitor in a
single rect, so we need to be prepared to buffer a lot of data in case
the monitor has a large resolution.

3 years agoThrow more descriptive error on rect read error
Pierre Ossman [Thu, 4 Nov 2021 08:00:33 +0000 (09:00 +0100)]
Throw more descriptive error on rect read error

Gives a bit more context where this error happened.

3 years agoRemove single cpu decoder shortcut
Pierre Ossman [Thu, 4 Nov 2021 07:38:46 +0000 (08:38 +0100)]
Remove single cpu decoder shortcut

Single CPU machines are extremely rare now, so let's avoid the hassle of
multiple code paths.

3 years agoUpdate Swedish translation
Göran Uddeborg [Tue, 19 Oct 2021 12:58:00 +0000 (14:58 +0200)]
Update Swedish translation

3 years agoFix closing reconnect dialog logic
Pierre Ossman [Thu, 14 Oct 2021 10:42:05 +0000 (12:42 +0200)]
Fix closing reconnect dialog logic

If you close the reconnect dialog then we should assume that you want to
close things, not that you want to reconnect. Unfortunately FLTK returns
the first choice when closing the dialog, so that needs to be the
"Cancel" alternative.

3 years agoMerge branch 'master' of https://github.com/twhitehead/tigervnc
Pierre Ossman [Thu, 14 Oct 2021 07:09:01 +0000 (09:09 +0200)]
Merge branch 'master' of https://github.com/twhitehead/tigervnc

3 years agoDon't fail on user CA/CRL problems
Pierre Ossman [Thu, 14 Oct 2021 06:57:08 +0000 (08:57 +0200)]
Don't fail on user CA/CRL problems

The certificates might still be fine using the system trust store, or
the user can make an exception. So let's just log and continue on.

This got very common after 960c7d2 where we now always have a default
value for these settings.

3 years agoSystem certificate load returns number loaded not GNUTLS_E_SUCCESS 1347/head
Tyson Whitehead [Fri, 1 Oct 2021 22:35:19 +0000 (18:35 -0400)]
System certificate load returns number loaded not GNUTLS_E_SUCCESS

3 years agoMerge pull request #1349 from samhed/fullscreenLevel
Samuel Mannehed [Wed, 6 Oct 2021 13:40:24 +0000 (15:40 +0200)]
Merge pull request #1349 from samhed/fullscreenLevel

Workaround FLTK bug that causes OptionsDialog to appear behind DesktopWindow

3 years agoWorkaround options window appearing behind viewer 1349/head
Samuel Mannehed [Wed, 6 Oct 2021 12:06:22 +0000 (14:06 +0200)]
Workaround options window appearing behind viewer

FLTK's fullscreen_x() function will always put the window on a high
level (NSStatusWindowLevel = 25), even if the window doesn't have focus.
This causes the OptionsDialog to end up behind the DesktopWindow when
the fullscreen function is called. Until we can rest assured that most
people building TigerVNC will use a fixed version of FLTK, we will need
this workaround.

3 years agoMerge pull request #1350 from samhed/serverdialogmodal
Samuel Mannehed [Wed, 6 Oct 2021 08:44:39 +0000 (10:44 +0200)]
Merge pull request #1350 from samhed/serverdialogmodal

Remove modal property from ServerDialog

3 years agoMerge branch 'master' of https://github.com/johahauf/tigervnc
Pierre Ossman [Wed, 6 Oct 2021 06:57:13 +0000 (08:57 +0200)]
Merge branch 'master' of https://github.com/johahauf/tigervnc

3 years agoRemove modal property from ServerDialog 1350/head
Samuel Mannehed [Tue, 5 Oct 2021 14:28:59 +0000 (16:28 +0200)]
Remove modal property from ServerDialog

Modal windows are meant to be child windows such as menus or popups that
are intended to always appear in front of its parent.

Modal FLTK windows without a parent seem to behave strangely on macOS.
Such windows can appear in front of their modal children windows.
When opening OptionsDialog from ServerDialog, it was easy to get to a
broken state by then switching focus back to the ServerDialog. This
would cause the ServerDialog to appear in front, but not be useable as
the options window would still have control of mouse and keyboard.

Additionally, modal windows without parents appear in front of other
normal applications on macOS. This means that the ServerDialog couldn't
be put behind Safari for example.

The fact that ServerDialog was a "modal" window was a bit strange,
seeing as it doesn't have any parent windows. Removing the modal
property from this window causes all the strange-ness to go away.

3 years agoMerge pull request #1344 from samhed/grabOnFocus
Samuel Mannehed [Tue, 5 Oct 2021 09:23:55 +0000 (11:23 +0200)]
Merge pull request #1344 from samhed/grabOnFocus

Only grab keyboard when we have focus

3 years agoOnly grab keyboard when we have focus 1344/head
Samuel Mannehed [Thu, 23 Sep 2021 14:31:59 +0000 (16:31 +0200)]
Only grab keyboard when we have focus

There was an issue with the new grabs that were introduced in commit
2289342de7222e4ff2483eae95bb9898830e6097. On macOS when running
vncviewer in fullscreen on one monitor, we saw that we sometimes got
resize and fullscreen events when switching the focus away from
vncviewer. With the changes in the commit mentioned above this meant
that we immediately grabbed the keyboard again, thus never releasing it.

Fixes #1332.

3 years agoCreate helper function for grabKeyboard conditions
Samuel Mannehed [Thu, 23 Sep 2021 14:31:19 +0000 (16:31 +0200)]
Create helper function for grabKeyboard conditions