aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* TigerVNC 1.14.1v1.14.11.14-branchLinn Mattsson2024-10-223-3/+3
|
* Allow empty value for config valuesLinn Mattsson2024-10-221-1/+1
| | | | | | | | Fixed so config variables can pass an empty argument. Solves issue #1791. (cherry picked from commit dbb6ee4d70ce080b452791a5a6d0f7ec3ac78f91)
* Clear clipboard state when its not plain textSamuel Mannehed2024-10-221-0/+3
| | | | | | | | | | | | Commit 8a80c906b9f7c08b1c664569a97d327d62c6d8ae added a check to prevent announcing clipboard when it's not plain text data. When this check triggers and we want to ignore the non-plain text clipboard, we should reset the state by no longer indicating pending clipboard, and by asking the server to clear its clipboard. This ensures we don't end up in a state where the server thinks the viewer has useful clipboard data, but it doesn't. (cherry picked from commit 6f6d9406035d59b6a9f59ff0f38206c0c98a0266)
* Only announce clipboard for plain text dataSamuel Mannehed2024-10-221-0/+5
| | | | | | | | | | | | | | | FLTK has support for both image and plain text clipboard data, we don't. This means we only send plain text clipboard from the viewer to the server. Some applications can get confused when we announce that clipboard is available and later don't send anything. An example of such an application is QGIS, in the remote session it froze when an image was copied on the client side. This fix means we only call announceClipboard() when the clipboard contains plain text. That means TigerVNC is now more robust and doesn't trigger freezes in buggy applications. (cherry picked from commit 8a80c906b9f7c08b1c664569a97d327d62c6d8ae)
* More carefully release mouse buttons on closePierre Ossman2024-10-222-4/+4
| | | | | | | | | | | | | | | Only the client that currently has buttons pressed should actually send a release event as the client might not be currently in control of the pointer state. This is most clearly seen in a client that hasn't event authenticated properly yet. Approximate this from the server by using the last known server cursor position. It should hopefully not differ much from the last client provided position. Follow-up to 986280b382d57ef4f68d2d4afb13b26772e5acb0. (cherry picked from commit 704f9724d8af58314c4fafc8930666bb2be46722)
* Explicitly clean up grabs on disconnectPierre Ossman2024-10-221-0/+5
| | | | | | | They are not automatically cleaned up with the window on Windows, and we might want to reconnect so we cannot rely on the process cleanup either. (cherry picked from commit 43ce674dfbd2576fe5b382ad9f87e5beebc72812)
* Handle server history with '/' in entriesPierre Ossman2024-10-221-1/+3
| | | | | | This happens if you've connected to a server using a Unix socket. (cherry picked from commit 4236d0c644a7454ab7a955e837143a8fd0777c09)
* Add missing config.h includesPierre Ossman2024-10-225-0/+19
| | | | (cherry picked from commit 1f3e77d75a912b30f554d745a56f5da1e4de966e)
* vncviewer: add missing include for struct timevalThomas Klausner2024-10-221-0/+2
| | | | (cherry picked from commit 169ffe18c141a4ca1fc2e790e927a1aa49cce30e)
* Correctly handle ZRLE cursorsPierre Ossman2024-10-221-2/+2
| | | | | | | | Cursor data has a depth of 32 bits and hence cannot use CPIXELs. This is a regression from baca73d. (cherry picked from commit 6d9017eeb364491cf2acdf1c7e61aee8dd198527)
* Only read first password from filePierre Ossman2024-10-221-1/+1
| | | | | | | | | | Read just the first password and ignore anything else in the password file. This allows you to reuse a password file from the server that also includes a view-only password. This fixes a regression introduced in b99daad. (cherry picked from commit 49a087e8f8ecafe950a86a71ae6657d6cac8ea77)
* Handle failure getting VNC directoriesPierre Ossman2024-10-221-6/+25
| | | | | | | Although rare, there are cases where we might fail to determine our base directories. Make sure the code can handle it. (cherry picked from commit edee4db8d1fd85495f189293041311bfff56d23c)
* Move base directory creation to helper functionPierre Ossman2024-10-221-25/+31
| | | | | | This is non-trivial now, so let's modularize this a bit. (cherry picked from commit 0c61c069bab38d14b93ad9d71b6509427a5611a8)
* H264Libav: Use nearest-neighbour sampling in scalerAndri Yngvason2024-10-221-1/+1
| | | | | | | | | | | | | sws_getCachedContext will set a default sampling method if 0 is passed to the flags argument. This means that when it is called again, the flags argument will not match the flags in the context, so a new one will be allocated every time. To get around this problem, we assign an explicit sampling method, one that also happens to be more efficient and just as good for this use-case as the default one, which is bicubic interpolation. (cherry picked from commit c68714aee15f1e6c75d53c398ea9b9178f64fcfb)
* H264Libav: Handle colour space conversionAndri Yngvason2024-10-221-0/+15
| | | | | | | The scaler is now informed of the colour space encoded into the stream so that it may do the proper conversion. (cherry picked from commit 28cc17e309fc6117370b38ec11d803dc36e8ef01)
* Apple only: exit FL_Window fullscreen if active in order to minimize.Rudimar Ronsoni Jr2024-10-221-0/+4
| | | | (cherry picked from commit a1bd5cf795d36dd4ce17e980b5cb0a7f200756b5)
* H264Libav: Clean up sws contextAndri Yngvason2024-10-221-0/+1
| | | | | | This fixes a memory leak (cherry picked from commit 35966469bc3410ba1573126300a19bf47d370910)
* H264Libav: Use AVFrame for pixel format conversion bufferAndri Yngvason2024-10-222-12/+20
| | | | | | | | | | This ensures that the buffer is allocated with the correct alignment and padding for use with sws_scale. This fixes out-of-bounds writes which would in some cases cause segmentation faults and/or heap corruption. (cherry picked from commit fff17cae7738d6b3d65426a0ce7df76e8034ad1c)
* Handle existing config directory in vncpasswdPierre Ossman2024-10-181-2/+4
| | | | | | This fixes commit a79c33d. (cherry picked from commit 445e0230cf4e939dcc59caf5d5f001c2f7b04da6)
* Use proper gnutls_free() on WindowsPierre Ossman2024-10-182-10/+4
| | | | | | | | The underlying issue requiring this hack was fixed ages ago. Unfortunately, the fixed GnuTLS doesn't consider static linking. So we need to add a new hack that permits that. (cherry picked from commit cfa4cc7dd223641176488dc3b41a53e6a81dade4)
* Include key code for fake key eventsPierre Ossman2024-10-181-6/+6
| | | | | | Let's try to mimic a real event as much as possible to avoid bugs. (cherry picked from commit 6111c0587aec6ea4700a91a460c7027572ab5011)
* Don't parse empty fence messagesPierre Ossman2024-10-181-1/+3
| | | | | | | We need to return here or we'll do an out-of-bounds access on the data array. (cherry picked from commit 7af69eb4a7a52d6baf4d09f79ccbec76bd1fcee1)
* Avoid XKeysymToString() conflict with libX11Pierre Ossman2024-10-181-0/+3
| | | | | | | | | | | | | We implement our own version of this, and because of this we carry our lookup table generated by the same tool that libX11 uses. Unfortunately, that table is a global symbol and as such there might be a mismatch of which table should be used. Make sure we get our own copy by changing the name of it. We use a define rather than modifying ks_tables.h as that file is automatically generated. (cherry picked from commit 01cf61b4e0f4cd5031794f0a82fdf603d20a7852)
* Add missing comma in default security type listPierre Ossman2024-10-181-1/+1
| | | | | | | Otherwise it merges with the next entry, removing both of them from the default list. (cherry picked from commit 4f6a3521874da5a67fd746389cfa9b6199eb3582)
* vncsession: use /bin/sh if the user shell is not setCarlos Santos2024-10-181-1/+1
| | | | | | | | | | | An empty shell field in the password file is valid, although not common. Use /bin/sh in this case, as documented in the passwd(5) man page, since the vncserver script requires a non-empty SHELL environment variable. Fixes issue #1786. Signed-off-by: Carlos Santos <casantos@redhat.com> (cherry picked from commit 4db34f73d461b973867ddaf18bf690219229cd7a)
* Use std::min replace minKang Lin2024-10-183-9/+9
| | | | (cherry picked from commit 9aaea93b2d1012b05ea24a15f4269cb9f356c3d9)
* Generate better (fake) modelinesPierre Ossman2024-10-184-5/+66
| | | | | | | This is what Xwayland does, so let's try to do the same to avoid any incompatibilites with applications. (cherry picked from commit 876cbf0800634b382b0a99e8cd086f588997f9d8)
* Improve unknown keysym handlingGaurav Ujjwal2024-10-185-19/+154
| | | | | | | Instead of giving up after all free keycodes have been used, Keycodes from previously added keysyms will be reused. Re: #93 (cherry picked from commit f65433a113ed2cce39161139982112aaa3ddf6e0)
* Update Friulian translationFabio T.2024-10-171-219/+250
| | | | (cherry picked from commit 87029b7f38455ad4ffa0573107707ce221aa3773)
* Update Chinese (simplified) translationMingye Wang (Artoria2e5)2024-10-171-270/+685
| | | | (cherry picked from commit 2e3347768d3d19852e2c575d1b9425e23d6efa87)
* Explicity install missing deps GitHub ActionsPierre Ossman2024-10-171-0/+1
| | | | | | | We seem to have gotten this implicitly before, but now that GitHub has switched to Ubuntu 24.04 we have to be explicit about it. (cherry picked from commit a4c86a7f07d81450c5e0147c27ed737b7af4547c)
* TigerVNC 1.14.0v1.14.0Pierre Ossman2024-07-233-3/+3
|
* Fix overflow; "Timer: gettimeofday is broken"Pierre Ossman2024-07-231-1/+4
| | | | | | | | The rounding misbehaved when the tv_usec calculation overflows. Fixes issue #1782. (cherry picked from commit 422444acf3a519b75709fb14c02118b75ecbc898)
* Be more careful with ComparingUpdateTracker pointerPierre Ossman2024-07-051-4/+13
| | | | | | | | As of 28c3f12, we might now be running the frame clock even without a framebuffer present. This means we need to be more careful accessing the ComparingUpdateTracker, as it might be NULL. (cherry picked from commit c4075860579ad33011fafee32f34c5d3da71a910)
* Round up expiration time for timersPierre Ossman2024-07-051-1/+1
| | | | | | | Otherwise we won't properly guarantee that we'll wait *at least* as long as the specified time. (cherry picked from commit c831c9084afffdf10fa5dda865a6df5d643d83dd)
* Fix x0vncserver handling of timersPierre Ossman2024-07-051-3/+3
| | | | | | Bug fix for bf28683. (cherry picked from commit 80ce950887824a120c8de07dac9191e7fff72de4)
* Update Slovak translationMarián Haburaj2024-06-271-544/+817
| | | | (cherry picked from commit 60962a99dde101099bc775dd98354a43b9b36c9a)
* Update Swedish translationLuna Jernberg2024-06-231-3/+3
| | | | (cherry picked from commit 0e9a00e87cf12087b253e0be214c7a7a045c94de)
* Update Finnish translationLauri Nurmi2024-06-231-206/+237
| | | | (cherry picked from commit b0c87ad5d437eb9462d5230afd1b75b7bf31db53)
* Update Czech translationPetr Pisar2024-06-231-206/+237
| | | | (cherry picked from commit c4972537884a42e2171d8a1981d3c2d772f64a14)
* Update Indonesian translationAndika Triwidada2024-06-211-208/+233
| | | | (cherry picked from commit f7e4771c836e07e32680fa525c4fabab46b611f6)
* Update Bulgarian translationAlexander Shopov2024-06-211-210/+235
| | | | (cherry picked from commit e8312b5fad4da00a51151c4492143cf64ea4bf34)
* Update Swedish translationLuna Jernberg2024-06-211-209/+240
| | | | (cherry picked from commit 2095bc16fae7463f513eb747ae99ebf212741842)
* Update Hebrew translationYaron Shahrabani2024-06-211-206/+237
| | | | (cherry picked from commit e725e51b11cb00ef9178b68ad14d6191f349a066)
* Update Romanian translationRemus-Gabriel Chelu2024-06-211-231/+248
| | | | (cherry picked from commit 81dd3035bf5a3eb899fb8433dc466385dd7bc616)
* Update Spanish translationCristian Othón Martínez Vera2024-06-211-208/+239
| | | | (cherry picked from commit 1ab83ee6a7deedb4fe5e3ca4cef100aed9d435c0)
* Update Ukrainian translationYuri Chornoivan2024-06-211-208/+239
| | | | (cherry picked from commit f3026de283d85db01e06c3086dc004068fcb38a0)
* TigerVNC 1.13.90 (1.14.0 beta)v1.13.90Pierre Ossman2024-06-203-3/+3
|
* Update translation template filePierre Ossman2024-06-201-200/+228
|
* Merge branch 'dri3' of github.com:CendioOssman/tigervncPierre Ossman2024-06-2017-98/+1634
|\