platform/upstream/freerdp.git
3 years agoUpdated changelog. (#6906) 2.3.2
akallabeth [Mon, 15 Mar 2021 12:29:35 +0000 (13:29 +0100)]
Updated changelog. (#6906)

3 years agoEnsure canvas background is black before drawing
akallabeth [Mon, 15 Mar 2021 09:04:59 +0000 (10:04 +0100)]
Ensure canvas background is black before drawing

(cherry picked from commit 618afd7028219610ecf580d10eab6e38096b6408)

3 years agoUpdated OpenSSL and android dependencies
akallabeth [Mon, 15 Mar 2021 08:49:23 +0000 (09:49 +0100)]
Updated OpenSSL and android dependencies

(cherry picked from commit 54fa29dc2d2125578efe6c80b214f42b669a140d)

3 years agoReverted winpr_BinToHexString argument change
Armin Novak [Fri, 12 Mar 2021 11:24:42 +0000 (12:24 +0100)]
Reverted winpr_BinToHexString argument change

keep API compatible.

3 years agoFixed CodeQL warnings
akallabeth [Mon, 25 Jan 2021 09:06:01 +0000 (10:06 +0100)]
Fixed CodeQL warnings

(cherry picked from commit 95a9e60827c91cb9b924d7ce3c220c30bd36907d)

3 years agoFix /monitor-list
Armin Novak [Fri, 12 Mar 2021 10:53:34 +0000 (11:53 +0100)]
Fix /monitor-list

3 years agoUpdated changelog
Armin Novak [Fri, 12 Mar 2021 09:53:41 +0000 (10:53 +0100)]
Updated changelog

3 years agoFixed #6882: Use default output device on mac
Armin Novak [Fri, 12 Mar 2021 09:58:23 +0000 (10:58 +0100)]
Fixed #6882: Use default output device on mac

(cherry picked from commit b09d2044e13577c68127effff3d3716c45f7571d)

3 years agoFixed mac issues with smartcard context cleanup (#6890)
akallabeth [Fri, 12 Mar 2021 07:56:23 +0000 (08:56 +0100)]
Fixed mac issues with smartcard context cleanup (#6890)

(cherry picked from commit b8a8ae4622a2c426c54c300b32c50316f0af42b0)

3 years agoAdded missing bounds check.
Armin Novak [Fri, 12 Mar 2021 09:15:51 +0000 (10:15 +0100)]
Added missing bounds check.

(cherry picked from commit 2e6069d95b997d0dc7d2cc118255570d22f0ae0c)

3 years agoAdded fuzzying test for planar decoder
Armin Novak [Fri, 12 Mar 2021 09:07:44 +0000 (10:07 +0100)]
Added fuzzying test for planar decoder

(cherry picked from commit 9bbc2cd094ac837a8f1196e80e7643c00436e486)

3 years agoAdded bounds check in rdpgfx_recv_wire_to_surface_1_pdu
Armin Novak [Fri, 12 Mar 2021 08:29:55 +0000 (09:29 +0100)]
Added bounds check in rdpgfx_recv_wire_to_surface_1_pdu

(cherry picked from commit 5fc3846f7793d4afe48387ac3aeffd4ad6852bab)

3 years agoAdded bounds checks to gfx commands
Armin Novak [Fri, 12 Mar 2021 08:12:28 +0000 (09:12 +0100)]
Added bounds checks to gfx commands

(cherry picked from commit dd61853142a07af0eca80c901292075373a6b2d6)

3 years agouse tlsOut BIO when using websocket in rdg_bio_ctrl
akarl [Fri, 5 Mar 2021 17:19:06 +0000 (18:19 +0100)]
use tlsOut BIO when using websocket in rdg_bio_ctrl

(cherry picked from commit 0e19c443e41cdc031a38a6ea24298972420af778)

3 years agoUpdated changelog
akallabeth [Tue, 9 Mar 2021 12:57:59 +0000 (13:57 +0100)]
Updated changelog

3 years agoFilter RDPDR types other than drives on windows hotplug
Armin Novak [Tue, 9 Mar 2021 11:23:37 +0000 (12:23 +0100)]
Filter RDPDR types other than drives on windows hotplug

(cherry picked from commit 6f599eabbedace4adc215186783deec680057003)

3 years agoUse specific names for drive hotplug special values
akallabeth [Tue, 9 Mar 2021 11:09:58 +0000 (12:09 +0100)]
Use specific names for drive hotplug special values

(cherry picked from commit b1be3d78fcc63a5842f7707a139b2582a4a42b21)

3 years agoCheck smartcard_convert_string_list for NULL string
akallabeth [Tue, 9 Mar 2021 08:22:39 +0000 (09:22 +0100)]
Check smartcard_convert_string_list for NULL string

In #6821 it has been reported that there are buggy smartcard
drivers that report a string size but fail to allocate the string
itself. This check avoids a crash with such input parameters

(cherry picked from commit f8b1e662b33f7b8f77cf6582d549348c2d048a2e)

3 years agoUpdated changelog.
akallabeth [Mon, 8 Mar 2021 13:33:46 +0000 (14:33 +0100)]
Updated changelog.

3 years agoBackported #6865: Disable websockets command line option
akallabeth [Mon, 8 Mar 2021 13:31:17 +0000 (14:31 +0100)]
Backported #6865: Disable websockets command line option

3 years agoUpdated changelog.
akallabeth [Mon, 8 Mar 2021 13:23:28 +0000 (14:23 +0100)]
Updated changelog.

3 years agoFix xf_Pointer_SetPosition with smart-sizing
akallabeth [Mon, 8 Mar 2021 12:52:29 +0000 (13:52 +0100)]
Fix xf_Pointer_SetPosition with smart-sizing

(cherry picked from commit d3e3ab7b5d5ce376ba72fa1fc0aee2f25c9682b4)

3 years agoUpdated changelog
Armin Novak [Fri, 5 Mar 2021 08:01:44 +0000 (09:01 +0100)]
Updated changelog

3 years agoAdded API check to allow compilation/run with mac os < 10.14
Armin Novak [Tue, 2 Mar 2021 08:11:28 +0000 (09:11 +0100)]
Added API check to allow compilation/run with mac os < 10.14

(cherry picked from commit 1cd97c327048ce87bb4e6da307f9ff959497cd3e)

3 years agoParse on a copy of the argument string for printer
akallabeth [Thu, 4 Mar 2021 13:26:35 +0000 (14:26 +0100)]
Parse on a copy of the argument string for printer

If done on original the wrong backend is loaded on autoreconnect

(cherry picked from commit af1c6ebcb49c93d636817ec98f74d07cba9d7f26)

3 years agoUpdated changelog
akallabeth [Thu, 4 Mar 2021 13:31:46 +0000 (14:31 +0100)]
Updated changelog

3 years agoFixed smartcard_convert_string_list with 0 length
Armin Novak [Wed, 3 Mar 2021 10:39:55 +0000 (11:39 +0100)]
Fixed smartcard_convert_string_list with 0 length

(cherry picked from commit e9904e286f43dea5940182b25740730c55e7c8a6)

3 years agoUpdated changelog for next stable
akallabeth [Tue, 2 Mar 2021 07:03:12 +0000 (08:03 +0100)]
Updated changelog for next stable

3 years agoFixed linking dependencies for client geometry channel
akallabeth [Tue, 1 Dec 2020 10:44:14 +0000 (11:44 +0100)]
Fixed linking dependencies for client geometry channel

(cherry picked from commit 7056433c8ecd045912fecb896ffa2eac3aad1410)

3 years agoFixed format string in smartcard_trace_state_return
akallabeth [Tue, 2 Mar 2021 06:50:17 +0000 (07:50 +0100)]
Fixed format string in smartcard_trace_state_return

(cherry picked from commit ca96c4450707d39dbd5c94f2b1c4ae807789b012)

3 years agoAdded -DDEFINE_NO_DEPRECATED CMake option 2.3.1
akallabeth [Mon, 1 Mar 2021 09:29:33 +0000 (10:29 +0100)]
Added -DDEFINE_NO_DEPRECATED CMake option

With that option all symbols marked deprecated are no longer
compiled. This helps testing compatibility of external apps.

3 years agoAdded changelog.
akallabeth [Sat, 27 Feb 2021 07:40:16 +0000 (08:40 +0100)]
Added changelog.

3 years agoFixed a leak on mouse cursor updates
akallabeth [Sat, 27 Feb 2021 16:37:35 +0000 (17:37 +0100)]
Fixed a leak on mouse cursor updates

3 years agoReverted connectErrorCode removal
akallabeth [Sat, 27 Feb 2021 07:35:33 +0000 (08:35 +0100)]
Reverted connectErrorCode removal

Reverted changes from e4b30a5cb6100a8ea4f320b829c9c5712ed4a783
removing the symbol/define, keep the changes for the clients.
Mark as deprecated

3 years agoAdded explicit warnings for experimental/unstable features
akallabeth [Sat, 27 Feb 2021 07:30:01 +0000 (08:30 +0100)]
Added explicit warnings for experimental/unstable features

3 years agoAdded compatibility define
akallabeth [Sat, 27 Feb 2021 07:29:46 +0000 (08:29 +0100)]
Added compatibility define

3 years agoUpdated changelog 2.3.0
akallabeth [Wed, 24 Feb 2021 06:24:07 +0000 (07:24 +0100)]
Updated changelog

3 years agoCompatibility reordering of new symbols in struct
akallabeth [Wed, 24 Feb 2021 06:23:54 +0000 (07:23 +0100)]
Compatibility reordering of new symbols in struct

3 years agoForce enable wayland in ci and nightly
akallabeth [Sat, 23 Jan 2021 09:01:48 +0000 (10:01 +0100)]
Force enable wayland in ci and nightly

(cherry picked from commit ce396a9aff3b63edd76a92e71d96c64d1d237fb2)

3 years agoci [codeql]: run apt update before install
Bernhard Miklautz [Fri, 4 Dec 2020 13:21:12 +0000 (14:21 +0100)]
ci [codeql]: run apt update before install

(cherry picked from commit 7bec71a63265bd8fd50e249bc733697f469e45cd)

3 years agoCreate codeql-analysis.yml
akallabeth [Mon, 23 Nov 2020 08:36:21 +0000 (09:36 +0100)]
Create codeql-analysis.yml

(cherry picked from commit 2b676bf1e7de111cd63c7f77cbbbf1d299b3a8fd)

3 years agoFixed smartcard crash on error return (invalid length)
akallabeth [Thu, 18 Feb 2021 15:48:09 +0000 (16:48 +0100)]
Fixed smartcard crash on error return (invalid length)

3 years agoFixed #6821: _stricmp does not like NULL strings
Armin Novak [Wed, 17 Feb 2021 15:45:56 +0000 (16:45 +0100)]
Fixed #6821: _stricmp does not like NULL strings

(cherry picked from commit 7b211e525892f056c18c827b9f56ccc24d6ae5f3)

3 years agoUpdated windows time zones 2021-02-11
Armin Novak [Thu, 11 Feb 2021 16:13:28 +0000 (17:13 +0100)]
Updated windows time zones 2021-02-11

(cherry picked from commit 2e5c09f20984654b3cc9a5ec32683dcff0b25df6)

3 years ago2.0 compatibility for rdpinput flag debug function
akallabeth [Tue, 16 Feb 2021 16:05:27 +0000 (17:05 +0100)]
2.0 compatibility for rdpinput flag debug function

3 years agoFixed #6712: Use window size from settings
akallabeth [Fri, 12 Feb 2021 13:18:24 +0000 (14:18 +0100)]
Fixed #6712: Use window size from settings

The xfc->window might be NULL (remote app, ...)

(cherry picked from commit 6ecd440658eee7dbd0a07c1366946046746d0b8d)

3 years agoMinor typo fix
Fabio Fantoni [Sun, 14 Feb 2021 17:35:42 +0000 (18:35 +0100)]
Minor typo fix

From debian packages patch done by Mike Gabriel
<mike.gabriel@das-netzwerkteam.de>

(cherry picked from commit 5c408e080e66c917ec4aeaaadf324b9665ba992a)

3 years agofreerdp-client: don't enable vmconnect mode based on PCB field presence in .RDP file
Marc-André Moreau [Thu, 11 Feb 2021 20:05:53 +0000 (15:05 -0500)]
freerdp-client: don't enable vmconnect mode based on PCB field presence in .RDP file

(cherry picked from commit 4e14e7d41e10f39de9a0fafe53461e9fb5ebc765)

3 years agoFixed formatting and source/destination length use
akallabeth [Fri, 12 Feb 2021 07:30:01 +0000 (08:30 +0100)]
Fixed formatting and source/destination length use

(cherry picked from commit f0ba8d7fb9c21b1134a3089eda661852b2861c0e)

3 years agolibfreerdp: core: deep copy ServerCertificate
mingfang [Fri, 12 Feb 2021 02:27:24 +0000 (10:27 +0800)]
libfreerdp: core: deep copy ServerCertificate

(cherry picked from commit b0783771055f55dccde85f8f5e50954ffca93383)

3 years agoCompatibility commit for RDPEI API
Armin Novak [Thu, 11 Feb 2021 11:43:05 +0000 (12:43 +0100)]
Compatibility commit for RDPEI API

3 years agoFixed issue with backported websockets support
Armin Novak [Thu, 11 Feb 2021 11:31:54 +0000 (12:31 +0100)]
Fixed issue with backported websockets support

3 years agoUpdated changelog
Armin Novak [Thu, 11 Feb 2021 08:15:18 +0000 (09:15 +0100)]
Updated changelog

3 years agoclients: Use the correct wheel rotation value
Pascal Nowack [Wed, 10 Feb 2021 17:50:51 +0000 (18:50 +0100)]
clients: Use the correct wheel rotation value

For the negative scrolling direction, RDP uses the two's complement,
instead of the positive wheel value with the negative flag.
xfreerdp currently uses the positive wheel value in addition to the
negative flag, which results in a wrong wheel value on the server side
(136 instead of 120).

Fix this, by using the correct wheel rotation value, which is in the
two's complement.

(cherry picked from commit 1087a5e1a64cb591efb44b67cfa5a97a7f40aaf7)

3 years agoFixed #6801: Delay sending of resolution change
akallabeth [Wed, 10 Feb 2021 14:32:07 +0000 (15:32 +0100)]
Fixed #6801: Delay sending of resolution change

Changed the logic of the disp channel to wait for 800ms after a
ConfigureNotify before sending the new resolution.
The problem fixed with this patch is the following:
1.  Resize the window with the mouse
2.  ConfigureNotify triggers a resize notification
3.  The server resizes to the desired resolution
3a. More ConfigureNotify events are generated
4.  The local window resize to the new resolution triggers another
    ConfigureNotify

a. Depending on the timing (sending is already rate limited) the
   events from 3a and 4 will make the size of the window jump
b. Very fast resizing will pick a random resolution from the
   sequence of ConfigureNotify events as the final resolution

(cherry picked from commit d3ed42a7994975098973c5f29f1ab98f7bdac2bf)

3 years agoAdded ConnectionStateChangeEvent for clients
Armin Novak [Mon, 8 Feb 2021 09:41:34 +0000 (10:41 +0100)]
Added ConnectionStateChangeEvent for clients

Clients can now subscribe to connection state change events to
prevend data from being transmitted on sessions being redirected.

(cherry picked from commit 27f6df97783c6f18377f91c9e229cce2b7d6c694)

3 years agordg websocket support
Michael Saxl [Mon, 25 Jan 2021 15:20:18 +0000 (16:20 +0100)]
rdg websocket support

(cherry picked from commit 99489318f4832dbeca2130ae2c45f26c4e9a85bd)

3 years agoFixed a ConvertToUnicode issue and added a unit test
akallabeth [Tue, 9 Feb 2021 14:48:20 +0000 (15:48 +0100)]
Fixed a ConvertToUnicode issue and added a unit test

(cherry picked from commit e15684cb1477e2fac6170835ac9132443dc79970)

3 years agoAlways return data on SCardGetStatusChange
Armin Novak [Mon, 8 Feb 2021 15:42:40 +0000 (16:42 +0100)]
Always return data on SCardGetStatusChange

If the call fails just return empty data for each reader.

(cherry picked from commit f0317a5e0fdc31f7f5f014e90e2b349fc7824bf2)

3 years agoFixed issue with GetAttr where the result buffer was not allocated
akallabeth [Sun, 7 Feb 2021 17:48:59 +0000 (18:48 +0100)]
Fixed issue with GetAttr where the result buffer was not allocated

(cherry picked from commit 38ae006db981c5bb031d5fbd957d99d2fef5c14a)

3 years agoFixed GetAttrib return length
akallabeth [Sun, 7 Feb 2021 17:13:18 +0000 (18:13 +0100)]
Fixed GetAttrib return length

(cherry picked from commit 5342f351ea441c1c3c1b34af216d583051e84fdc)

3 years agoFixed smartcard_unpack_reader_state, allow empty names
akallabeth [Sun, 7 Feb 2021 11:21:44 +0000 (12:21 +0100)]
Fixed smartcard_unpack_reader_state, allow empty names

(cherry picked from commit 2757b5d6c08e05154d5968c2fc04f7b15a7ea3d3)

3 years agoFixed SCardTransmit return
akallabeth [Sat, 6 Feb 2021 15:59:51 +0000 (16:59 +0100)]
Fixed SCardTransmit return

(cherry picked from commit ad4694f7a02cb9295795b6c5d07fa9bdb1614d2b)

3 years agoFixed SCardState wrapper
akallabeth [Sat, 6 Feb 2021 14:55:21 +0000 (15:55 +0100)]
Fixed SCardState wrapper

(cherry picked from commit e5a1dae34f018d45049304a10a22658d853b1cc0)

3 years agoUnified smartcard call data structs
akallabeth [Sat, 6 Feb 2021 14:22:38 +0000 (15:22 +0100)]
Unified smartcard call data structs

(cherry picked from commit 2674d3b2f3700e0b4bc859d41b4506d8c28d2d95)

3 years agoUnified smartcard handle converstion
akallabeth [Sat, 6 Feb 2021 14:08:57 +0000 (15:08 +0100)]
Unified smartcard handle converstion

(cherry picked from commit 69d33da061ff15d2c016de1569b54ca68a578f05)

3 years agoFixed various return values in case of result != SCARD_S_SUCCESS
akallabeth [Sat, 6 Feb 2021 13:28:28 +0000 (14:28 +0100)]
Fixed various return values in case of result != SCARD_S_SUCCESS

(cherry picked from commit e32305dd3a09312cc04e428bb7d2cb5395be1fdd)

3 years agoFixed GetAttrib call
akallabeth [Sat, 6 Feb 2021 11:40:17 +0000 (12:40 +0100)]
Fixed GetAttrib call

(cherry picked from commit 99d228251c73c3c33bc1119ceb7d084f77d80076)

3 years agorefactored smartcard allocations
akallabeth [Sat, 6 Feb 2021 11:21:03 +0000 (12:21 +0100)]
refactored smartcard allocations

(cherry picked from commit 27ba319c89ab46431b0df1b9ad41daf68b7eae6f)

3 years agoFixed SCard debug WCHAR string lengths
akallabeth [Fri, 5 Feb 2021 16:12:52 +0000 (17:12 +0100)]
Fixed SCard debug WCHAR string lengths

(cherry picked from commit a9409221d073e8665a1f27da764d9d042f557e0f)

3 years agoFixed double free in PCSC_SCardGetAttrib_FriendlyName
akallabeth [Fri, 5 Feb 2021 16:11:58 +0000 (17:11 +0100)]
Fixed double free in PCSC_SCardGetAttrib_FriendlyName

(cherry picked from commit c1575fa99aa9fae335cf6b0f4107c0e12aa7d931)

3 years agoReordered UWAC events to keep compatibility
Armin Novak [Fri, 5 Feb 2021 12:31:46 +0000 (13:31 +0100)]
Reordered UWAC events to keep compatibility

3 years agoChangelog for 2.3.0
Armin Novak [Fri, 5 Feb 2021 08:55:50 +0000 (09:55 +0100)]
Changelog for 2.3.0

3 years agoCompatibility changes
Armin Novak [Fri, 5 Feb 2021 11:42:20 +0000 (12:42 +0100)]
Compatibility changes

Renamed symbols and added wrappers to keep API compatible with
2.0 branch.

3 years agoIncreased version to 2.3.0
Armin Novak [Fri, 5 Feb 2021 10:13:11 +0000 (11:13 +0100)]
Increased version to 2.3.0

3 years agoDo not recreate already initialized codecs
Armin Novak [Fri, 5 Feb 2021 10:06:23 +0000 (11:06 +0100)]
Do not recreate already initialized codecs

GFX and SurfaceBits commands share a common codec backend.
Recreating all codec context on GFX initialization will break
clients that are decoding SurfaceBits codec while having the GFX
channel initialized.

(cherry picked from commit 91a6ac131370c48a742b8bcc58ad188bb7ed60f8)

3 years agoFixed default return for DrawOrderInfo
akallabeth [Thu, 28 Jan 2021 13:08:35 +0000 (14:08 +0100)]
Fixed default return for DrawOrderInfo

(cherry picked from commit 4587ef976c07a06f9fe751e2857bddea2a6e9a69)

3 years agoFix length return for SCARD_ATTR_VENDOR_NAME
akallabeth [Wed, 27 Jan 2021 22:25:57 +0000 (23:25 +0100)]
Fix length return for SCARD_ATTR_VENDOR_NAME

(cherry picked from commit cf2d26dbbd7491d2039c6bb13cd4cc0130f50cd6)

3 years agoFixed PCSC_SCardGetAttrib wrapper
Armin Novak [Wed, 27 Jan 2021 14:07:44 +0000 (15:07 +0100)]
Fixed PCSC_SCardGetAttrib wrapper

(cherry picked from commit 17d8267de70719d1ac7357bc71d177bf36c6ad86)

3 years agoDereference ppbAttr as argument for SCardGetAttrib
akallabeth [Tue, 26 Jan 2021 16:22:42 +0000 (17:22 +0100)]
Dereference ppbAttr as argument for SCardGetAttrib

(cherry picked from commit 1efcd605e02bdbe54121d9f1da85d6874c26f59e)

3 years agoAdded option to remap scancodes
Armin Novak [Wed, 28 Oct 2020 11:22:48 +0000 (12:22 +0100)]
Added option to remap scancodes

(cherry picked from commit d7bf6553c558db64e5e3108b08f8ee1d394d1393)

3 years agoCompatibility commit
Armin Novak [Fri, 5 Feb 2021 08:39:07 +0000 (09:39 +0100)]
Compatibility commit

* Adds compatibility defines for 2.2.0
* Reorders some newe fields in structs to improve compatibility

3 years agoprogressive: fix multiple regions in one gfx frame.
Vic Lee [Thu, 4 Feb 2021 05:01:38 +0000 (13:01 +0800)]
progressive: fix multiple regions in one gfx frame.

(cherry picked from commit 7f94095a0670f6d0bc19021e6e1439cf934edf52)

3 years agolibuwac: Fix code format
0140454 [Thu, 4 Feb 2021 13:51:23 +0000 (21:51 +0800)]
libuwac: Fix code format

(cherry picked from commit 706b6ddbb12a22986a1a86171d4c19775f4a5d6f)

3 years agoSync numlock, capslock state in Wayland
0140454 [Thu, 4 Feb 2021 12:24:49 +0000 (20:24 +0800)]
Sync numlock, capslock state in Wayland

(cherry picked from commit b56a3691ca35a7f55e31998c55a40a9da9d0d745)

3 years agolibuwac: Add UwacKeyboardModifiersEvent
0140454 [Thu, 4 Feb 2021 12:23:02 +0000 (20:23 +0800)]
libuwac: Add UwacKeyboardModifiersEvent

(cherry picked from commit b4ffc2f8b3792f9781559ebe4a094511c3b46170)

3 years agoDont' commit surface in configure handler
0140454 [Sat, 30 Jan 2021 13:39:07 +0000 (21:39 +0800)]
Dont' commit surface in configure handler

(cherry picked from commit 256b94450cc921560dd9842fadc45edbeb85e760)

3 years agoProcess close event
0140454 [Sat, 30 Jan 2021 13:38:03 +0000 (21:38 +0800)]
Process close event

(cherry picked from commit f61744a062255eaaaaec21c9192666f55559e26e)

3 years agoAdded wayland discrete axis events for mouse wheel
akallabeth [Wed, 27 Jan 2021 18:42:32 +0000 (19:42 +0100)]
Added wayland discrete axis events for mouse wheel

the discrete axis event gives changes in steps just like the
xfreerdp version uses. This way scrolling can be implemented
consistent with the behaviour of xfreerdp

(cherry picked from commit 2cce37a82a08b0a7c24302a6819371218dea1ec6)

3 years agocore: Enable network auto detection by default
Martin Fleisz [Thu, 4 Feb 2021 12:10:58 +0000 (13:10 +0100)]
core: Enable network auto detection by default

(cherry picked from commit ce3edb00ef7471fc80b1991d126342aedc2d4c93)

3 years agocore: Remove connection type manipulation in gcc_write_client_core_data
Martin Fleisz [Thu, 4 Feb 2021 08:54:48 +0000 (09:54 +0100)]
core: Remove connection type manipulation in gcc_write_client_core_data

Removes the changes to connection type in gcc_write_client_core_data and
adds some checks if network detection is enabled when receiving network
detection requests.

(cherry picked from commit 43825e364e9580eab08cae84dfd8021d16828730)

3 years agolibfreerdp: core: add checks in gcc_write_client_data_blocks
kubistika [Thu, 21 Jan 2021 13:24:38 +0000 (15:24 +0200)]
libfreerdp: core: add checks in gcc_write_client_data_blocks

(cherry picked from commit afa213b5e572416fca6049c748cda14d38f3b262)

3 years agogateway: Fix consent/service message in legacy gateway code
Martin Fleisz [Wed, 27 Jan 2021 08:44:19 +0000 (09:44 +0100)]
gateway: Fix consent/service message in legacy gateway code

(cherry picked from commit 00d56429211c2b1275e1122450e5bb87094c9678)

3 years agoFixed drive hotplug path comparison.
Armin Novak [Wed, 27 Jan 2021 08:25:26 +0000 (09:25 +0100)]
Fixed drive hotplug path comparison.

(cherry picked from commit c7bf33aad04822eb6400459114d405031edb376a)

3 years agoAdded OrderInfo callback for primary, seconardy and altsec orders
akallabeth [Tue, 26 Jan 2021 14:25:06 +0000 (15:25 +0100)]
Added OrderInfo callback for primary, seconardy and altsec orders

This allows gathering statistics about which orders have been
received

(cherry picked from commit f45f92f7bb4b560d1fedd723a353d8c1d0c73fbd)

3 years agoFix key repeat in Wayland
0140454 [Tue, 26 Jan 2021 17:19:15 +0000 (01:19 +0800)]
Fix key repeat in Wayland

(cherry picked from commit 712c5fee97d9b007b902bee63b7b7a4971bfbe6b)

3 years agoFilter out duplicate ClientFormatList announcements
akallabeth [Thu, 26 Nov 2020 16:38:04 +0000 (17:38 +0100)]
Filter out duplicate ClientFormatList announcements

(cherry picked from commit a51f4ccaaa8d4a2232725dc555827705ea8f0429)

3 years agoCommand-line option to choose an X selection.
Simon Tatham [Wed, 18 Mar 2020 20:59:12 +0000 (20:59 +0000)]
Command-line option to choose an X selection.

I personally find it more convenient to have pasted data written to
the X11 PRIMARY selection, so that I can paste it with a fast middle-
button click, than to write to CLIPBOARD which typically needs a key
sequence or menu action.

This commit adds a command-line option to let me express that
preference: now I can say "/clipboard:use-selection:PRIMARY" on the
command line, which not only enables clipboard transfer but also says
which X selection I want it to talk to. The previous options
"+clipboard" and "-clipboard" are also still supported.

(cherry picked from commit 64948b96c4c4640078ce563b165a907251fd6f20)

3 years agowinpr/utils: allow COMMAND_LINE_VALUE_{OPTIONAL,BOOL} to coexist.
Simon Tatham [Wed, 18 Mar 2020 21:00:06 +0000 (21:00 +0000)]
winpr/utils: allow COMMAND_LINE_VALUE_{OPTIONAL,BOOL} to coexist.

Now you can give an option the combination of flags
COMMAND_LINE_VALUE_OPTIONAL and COMMAND_LINE_VALUE_BOOL. If you do,
then all three of the syntaxes +foo, -foo and /foo:value are allowed
at once, and the receiving code can tell the difference because the
Value field is set to BoolValueTrue, BoolValueFalse or a valid char
pointer.

(cherry picked from commit 22c6b375d4ae9bf9dcac74d3360d0042673f1353)

3 years agoxf_cliprdr: fill in support for TIMESTAMP requests.
Simon Tatham [Fri, 13 Mar 2020 17:59:22 +0000 (17:59 +0000)]
xf_cliprdr: fill in support for TIMESTAMP requests.

A selection owner is supposed to respond to a request for the
selection target TIMESTAMP by providing the X server time at which the
selection was written. There was a /* TODO */ comment in xf_cliprdr
where the code to do that should have been.

The absence of this can cause a problem when pasting into some X
clients. xtightvncviewer, in particular, will give up the attempt to
read from the clipboard at all if it doesn't get a satisfactory
response to the initial TIMESTAMP request - and the non-answer zero
value "CurrentTime" counts as unsatisfactory. It won't be happy with
anything short of a real X server time value.

(Checking the VNC source code, that's because it reads both PRIMARY
and CLIPBOARD and picks the one with the later timestamp. So it does
depend on the timestamps existing.)

When you're writing to the selection in response to a normal X event
like a mouse click or keyboard action, you get the selection timestamp
by copying the time field out of that X event. Here, we're doing it on
our own initiative, so we have to _request_ the X server time. There
isn't a GetServerTime request in the X protocol, so I work around it
by setting a property on our own window, and waiting for a
PropertyNotify event to come back telling me it's been done - which
will have a timestamp we can use.

(cherry picked from commit fcabbc9707e23b94d7e82021e997578fb20c9313)