aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/vncviewer.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Namespace directory functionsPierre Ossman2023-02-041-1/+1
| | | | All library functions should be in a proper namespace.
* Return static char buffer from some methodsPierre Ossman2023-02-041-4/+2
| | | | | | | | | This mimics how some system functions (like inet_ntop()) work, and avoids complexity around ownership of the returned string buffer. The downside is that the string must be consumed directly as it will be overwritten on the next call, but that is not an issue with the current usage.
* Use StringParameters directlyPierre Ossman2023-02-041-2/+2
| | | | | We don't need to make extra copies of the string in most cases, so let's simplify the code and access the string directly when we can.
* Explicitly mark unused parametersPierre Ossman2023-01-041-2/+2
| | | | | This allows us to separate accidentally unused, from explicitly unused parameters, which allows us to turn on such checks in the compiler.
* Respect given server namePierre Ossman2023-01-041-1/+1
| | | | | No practical difference currently, but let's respect what this API was supposed to do.
* Split general FLTK appearance to separate filePierre Ossman2022-09-071-23/+3
| | | | | These are general things and not specific to TigerVNC, so let's move it to the fltk specific directory for clarity.
* Split out FLTK utility functionsPierre Ossman2022-09-071-1/+1
| | | | | These have nothing to do with layout, so let's split them to their own file.
* Move general FLTK stuff to own directoryPierre Ossman2022-09-071-1/+1
| | | | | | | Let's separate TigerVNC specific things from stuff that could be part of upstream FLTK. These are files that we would like to collaborate with other FLTK users, so they are more liberally licensed and avoid using TigerVNC specific things.
* Add support for RSA-AES security typespdlan2022-09-011-2/+2
|
* Add more Unix icon sizesPierre Ossman2022-05-111-1/+1
| | | | | Some desktop environment, like KDE, need more rastered sizes and cannot make use of the SVG.
* Remove dead codePierre Ossman2022-05-111-6/+0
| | | | This code is never used on Windows, so remove it.
* Safer allocation of icon arrayPierre Ossman2022-05-111-1/+1
| | | | | Avoid the risk of the list of sizes and the list of icons getting out of sync and causing memory corruption.
* Remove 32-/64-bit distinctionsPierre Ossman2022-01-211-3/+2
| | | | | 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.
* Log objects should be localPierre Ossman2022-01-211-1/+1
| | | | Otherwise things might be logged under the wrong label.
* Update copyright year to 2022Pierre Ossman2022-01-051-1/+1
|
* Don't add . to error message stringPierre Ossman2022-01-041-1/+1
| | | | | The norm is to have error strings without punctiation, so avoid adding one as it just confuses the translators.
* Deduplicate vncviewer error messagesWilliam Sjöblom2021-11-231-0/+6
| | | | | vncviewer previously had a the same localized error message duplicated on a bunch of places. Pull these duplicates out into a single function.
* Fix closing reconnect dialog logicPierre Ossman2021-10-141-2/+2
| | | | | | | 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.
* Clean up some error stringsPierre Ossman2021-09-081-4/+3
| | | | | Try to reuse and split things so that it makes things easier for the translators.
* Include translations in macOS and Windows buildsPierre Ossman2021-08-271-1/+62
|
* Retry connection in case of an errorJohannes2021-07-231-27/+86
|
* Avoiding final period in log messagesPierre Ossman2021-07-191-1/+1
| | | | Try to be consistent with existing log messages.
* Add fullscreen mode parameterHugo Lundin2021-07-161-0/+12
| | | | | | | | | | | | | | | | | | | | | | | Before this commit, `FullScreen` and `FullScreenAllMonitors` could be used to configure whether to use the current monitor in fullscreen, or all monitors in fullscreen. This commit deprecates `FullScreenAllMonitors` in favour of `FullScreenMode` (which can either be `current` or `all`). This allows for additional modes to be added, without the risk of having invalid states (for example two activate two different fullscreen modes at the same time). A new concept has been added; read-only parameters. They are parameters that will be read, but never written back. This allows for migration paths to be constructed, where a parameter can be taken to consideration but then for example be discarded, logged or changed into something else. This has been used for `FullScreenAllMonitors` to provide a migration path. On startup of vncviewer, if `FullScreenAllMonitors` is enabled, `FullScreenMode=all` will be automatically enabled instead. The next time the configuration file is written to disk, `FullScreenAllMonitors` will then be removed.
* Clean up default value for X509 parametersPierre Ossman2021-06-131-4/+0
| | | | | Let's avoid making this too complex and force every user to know about magical functions.
* Update copyright year to 2021Pierre Ossman2021-01-251-1/+1
|
* Merge branch 'noblock' of https://github.com/CendioOssman/tigervncPierre Ossman2021-01-191-5/+13
|\
| * Better error messages when terminatingPierre Ossman2020-05-211-6/+14
| | | | | | | | | | Include something more user friendly when we need to fail fatally and not just the technical error.
* | Remove bogus strncpy() callsPierre Ossman2020-12-071-4/+2
| | | | | | | | | | 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.
* | Don't show error dialog if exiting without messagePierre Ossman2020-11-161-1/+1
| | | | | | | | | | This was already handled for most exit conditions, but not the early ones.
* | Tolerate specifying -BoolParam 0 and similarPierre Ossman2020-09-181-0/+20
| | | | | | | | | | | | This is needed by vncserver which doesn't know which parameters are boolean, and it cannot use the -Param=Value form as that isn't tolerated by the Xorg code.
* | Implement X Input pointer handling for UnixAaron Sowry2020-05-291-0/+2
| | | | | | | | | | | | | | | | Switch from using Core events to using X Input events for pointer devices in order to differentiate between mouse events and touch events. Because FLTK doesn't understand X Input 2, we intercept these events and translate them to core events where possible.
* | Open X11 display properlyPierre Ossman2020-05-261-7/+7
| | | | | | | | | | | | | | We need to make sure everything happens in the correct order during startup for the X11 display to open correctly. Primarily it means we need to parse the arguments and open the display before anything might make any X11 calls, as we may have a -display argument.
* | Remove default config alertPierre Ossman2020-05-261-2/+0
| | | | | | | | | | We don't exit here, so it's not a fatal error. It's also a fairly common scenario, so remove the alert completely.
* | Use exit_vncviewer() for early errorsPierre Ossman2020-05-201-12/+16
|/ | | | Makes things more consistent and avoids surprises.
* Use standard install dir variable namesPierre Ossman2020-03-121-2/+2
| | | | | This makes our builds directly compatible with most distributions without packagers/users having to specify extra flags.
* Update copyright year to 2020Pierre Ossman2020-01-161-1/+1
|
* Handle server name overflow properlyPierre Ossman2019-03-261-3/+6
| | | | | | We need to make sure it is null terminated on truncation. We also need to avoid giving a too large size argument or modern gcc will complain.
* Better document the argument for -geometryPierre Ossman2019-03-261-1/+2
| | | | | It's not common knowledge these days how X geometry is specified, and even the man page X(7) is missing on many systems now.
* Show extra options in vncviewer --helpPierre Ossman2019-03-261-0/+8
| | | | | FLTK has some options (that we've also documented in the man page) that should be mentioned in the --help output.
* Update visible copyright years to 2019Samuel Mannehed2019-02-271-1/+1
|
* Merge branch 'covscan' of https://github.com/grulja/tigervncPierre Ossman2018-11-211-1/+1
|\
| * Fix memory leaksJan Grulich2018-11-201-1/+1
| |
* | Change to https for tigervnc URLPierre Ossman2018-10-191-1/+1
| | | | | | | | Our main web site now supports https, so update all references.
* | Include unix socket in vncviewer usagePierre Ossman2018-09-281-3/+12
|/ | | | | | | | We've had support for unix sockets for a while now. Make sure this is reflected in the -help output and the man page. Also make some minor tweaks to the section to get everything in sync with reality.
* Better string handling of default server namePierre Ossman2018-06-131-3/+5
| | | | | We might not get one from the default configuration (we might not have a default configuration at all), so make things more robust.
* Merge branch 'unix' of https://github.com/CendioOssman/tigervncPierre Ossman2018-05-291-3/+15
|\
| * Use abstract SocketListener classPierre Ossman2018-05-041-3/+3
| | | | | | | | | | Makes the code more general and not directly tied to specifically TCP sockets.
* | Don't require server name in config filePierre Ossman2018-05-291-11/+8
| | | | | | | | | | The user might just want to load a bunch of settings and not initiate a connection.
* | Accept a cfg as an argument as an alt way to start the viewerMathias Jonsson2018-05-221-2/+31
|/ | | | | | | | | The user can specify a tigervnc configuration file as an argument to the viewer. Previously the viewer assumed this to be a server, but now we will first check if there is any file matching the given argument. If so, try to load the content of that file, like we normally do. Fixes issue #38.
* Update visible copyright year to 2018Samuel Mannehed2018-02-081-1/+1
|