14568 Commits

Author SHA1 Message Date
Armin Novak
377c61648f 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)
2021-02-25 09:51:41 +01:00
akallabeth
176893e6da Fixed default return for DrawOrderInfo
(cherry picked from commit 4587ef976c07a06f9fe751e2857bddea2a6e9a69)
2021-02-25 09:51:41 +01:00
akallabeth
66f13a3ea4 Fix length return for SCARD_ATTR_VENDOR_NAME
(cherry picked from commit cf2d26dbbd7491d2039c6bb13cd4cc0130f50cd6)
2021-02-25 09:51:41 +01:00
Armin Novak
7cb3753c08 Fixed PCSC_SCardGetAttrib wrapper
(cherry picked from commit 17d8267de70719d1ac7357bc71d177bf36c6ad86)
2021-02-25 09:51:41 +01:00
akallabeth
5a052b7515 Dereference ppbAttr as argument for SCardGetAttrib
(cherry picked from commit 1efcd605e02bdbe54121d9f1da85d6874c26f59e)
2021-02-25 09:51:41 +01:00
Armin Novak
1c590a71e7 Added option to remap scancodes
(cherry picked from commit d7bf6553c558db64e5e3108b08f8ee1d394d1393)
2021-02-25 09:51:41 +01:00
Armin Novak
d1250f9443 Compatibility commit
* Adds compatibility defines for 2.2.0
* Reorders some newe fields in structs to improve compatibility
2021-02-25 09:51:41 +01:00
Vic Lee
f2d09e6eb0 progressive: fix multiple regions in one gfx frame.
(cherry picked from commit 7f94095a0670f6d0bc19021e6e1439cf934edf52)
2021-02-25 09:51:41 +01:00
0140454
b54e32261a libuwac: Fix code format
(cherry picked from commit 706b6ddbb12a22986a1a86171d4c19775f4a5d6f)
2021-02-25 09:51:41 +01:00
0140454
ed96ca820f Sync numlock, capslock state in Wayland
(cherry picked from commit b56a3691ca35a7f55e31998c55a40a9da9d0d745)
2021-02-25 09:51:41 +01:00
0140454
09268fb27b libuwac: Add UwacKeyboardModifiersEvent
(cherry picked from commit b4ffc2f8b3792f9781559ebe4a094511c3b46170)
2021-02-25 09:51:41 +01:00
0140454
56157f4dc2 Dont' commit surface in configure handler
(cherry picked from commit 256b94450cc921560dd9842fadc45edbeb85e760)
2021-02-25 09:51:41 +01:00
0140454
ea30b6988e Process close event
(cherry picked from commit f61744a062255eaaaaec21c9192666f55559e26e)
2021-02-25 09:51:41 +01:00
akallabeth
2647eefa83 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)
2021-02-25 09:51:41 +01:00
Martin Fleisz
856316f2c6 core: Enable network auto detection by default
(cherry picked from commit ce3edb00ef7471fc80b1991d126342aedc2d4c93)
2021-02-25 09:51:41 +01:00
Martin Fleisz
2b0958173a 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)
2021-02-25 09:51:41 +01:00
kubistika
609c54512c libfreerdp: core: add checks in gcc_write_client_data_blocks
(cherry picked from commit afa213b5e572416fca6049c748cda14d38f3b262)
2021-02-25 09:51:41 +01:00
Martin Fleisz
21bce4625c gateway: Fix consent/service message in legacy gateway code
(cherry picked from commit 00d56429211c2b1275e1122450e5bb87094c9678)
2021-02-25 09:51:41 +01:00
Armin Novak
f80ca4580a Fixed drive hotplug path comparison.
(cherry picked from commit c7bf33aad04822eb6400459114d405031edb376a)
2021-02-25 09:51:41 +01:00
akallabeth
5e5e25284b Added OrderInfo callback for primary, seconardy and altsec orders
This allows gathering statistics about which orders have been
received

(cherry picked from commit f45f92f7bb4b560d1fedd723a353d8c1d0c73fbd)
2021-02-25 09:51:41 +01:00
0140454
214a3308c6 Fix key repeat in Wayland
(cherry picked from commit 712c5fee97d9b007b902bee63b7b7a4971bfbe6b)
2021-02-25 09:51:41 +01:00
akallabeth
d4dee27b61 Filter out duplicate ClientFormatList announcements
(cherry picked from commit a51f4ccaaa8d4a2232725dc555827705ea8f0429)
2021-02-25 09:51:41 +01:00
Simon Tatham
aa9b644e3a 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)
2021-02-25 09:51:41 +01:00
Simon Tatham
818480be91 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)
2021-02-25 09:51:41 +01:00
Simon Tatham
04fd010402 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)
2021-02-25 09:51:41 +01:00
akallabeth
4a2265cb1e Fixed #6696: Implement HandshakeEx in windows client
Special thanks to @byteboon for bisecting the issue

(cherry picked from commit fc20299c22735beb64afe33b958c41506f092c72)
2021-02-25 09:51:41 +01:00
akallabeth
552c18858a Fixed call to GetKeyboardLayout
(cherry picked from commit 8b8016ec21509fda5dfd182cb1d1fb186d272d7a)
2021-02-25 09:51:41 +01:00
akallabeth
3becbc6c26 Fixed naming of FILEDESCRIPTORW
(cherry picked from commit a3bf25e9239b1fb970e65901356a970531bf067a)
2021-02-25 09:51:41 +01:00
akallabeth
43516beb70 Fixed support for huge files in clipboard
(cherry picked from commit f3dad4106a62cf29db0685221cd90b751e3ac2b1)
2021-02-25 09:51:41 +01:00
Armin Novak
b46b52ee15 Fixed NtStatus2Tag return.
(cherry picked from commit 11ca443aafc39ebc61c24f19577655e0ffcaa189)
2021-02-25 09:51:41 +01:00
Armin Novak
5dbf2cc7eb Added backward compatibility define
(cherry picked from commit a22f264189b112ac1b334ef33cd2a2615b0b8140)
2021-02-25 09:51:41 +01:00
Armin Novak
8379eaf982 Updated FD_FLAGS definition.
(cherry picked from commit ef1c8a3b506a2e039faa92b435d326ca3f29385a)
2021-02-25 09:51:41 +01:00
akallabeth
b9f00a97e3 Refactored RDG chunked data struct
(cherry picked from commit eafb4b8d5f4dd081606b4e6a69d92089993aae4b)
2021-02-25 09:51:41 +01:00
akallabeth
971341dd37 Fixed RDP gateway types and use after free
(cherry picked from commit 8c78e6742569936cb2bff59649888c93f3f3437f)
2021-02-25 09:51:41 +01:00
akarl10
b3be5e49b3 Implement chunked encoding for RDG_OUT_DATA
(cherry picked from commit cfb1a878a3b1c2c469c3d15e135f21f388c177b8)
2021-02-25 09:51:41 +01:00
odednoam
d9ca7c09f9 free previous value of password field from freerdp_assistance_parse_file_buffer
(cherry picked from commit 73dd40275fca9d009bcb07d4a734af146578f414)
2021-02-25 09:51:41 +01:00
odednoam
a8326f9d4a Fixed bug with assistance buffer parsing: freerdp_assistance_parse_file_buffer may be called directly, not necessarily from freerdp_assistance_parse_file, so password should be saved to the rdpAssistanceFile in freerdp_assistance_parse_file_buffer.
(cherry picked from commit 0dc9b18cdea8dce172fdc34be067b07a846594d0)
2021-02-25 09:51:41 +01:00
akallabeth
2d84387fcd Conservative keyboard state sync, refactored input API
(cherry picked from commit b679f3a0ebbbedf039e735523087c58e3b3920e2)
2021-02-25 09:51:41 +01:00
akallabeth
1b06f38041 Fixed display channel anounce race
* The display resolution change message was prone to a race condition
* Check for actual fullscreen state instead of settings
* Assume 75dpi for display resolution to mm conversion

(cherry picked from commit 13c8a60b7095c141321cd2d09f3e36466d54a748)
2021-02-25 09:51:41 +01:00
Armin Novak
7612054de4 Properly discard xfc->appWindow on focus loss
(cherry picked from commit 34e5504bcc1734fd767572a262dec94e551e4c30)
2021-02-25 09:51:41 +01:00
akallabeth
21ba0d2b54 Fixed #6635: Use correct window handle for pointer operations
(cherry picked from commit e8fe552ed4759327d63abf637f464839b2d6306a)
2021-02-25 09:51:41 +01:00
akallabeth
eb4dca0015 Fixed #6518
(cherry picked from commit 38a79be33f429b5e556f8185eb94a73c8aa45bb9)
2021-02-25 09:51:41 +01:00
Armin Novak
99e5a89b81 Cleaned up rdpei channel, updated to current spec.
(cherry picked from commit bd061fc291108bad67ce94dd92e1fdb31e0c0cae)
2021-02-25 09:51:41 +01:00
akallabeth
fb213a2336 Fixed possible out of bound access in usb channel.
(cherry picked from commit 2e5280feecc3cd692f9930f9b7ed26129423a1a1)
2021-02-25 09:51:41 +01:00
Nathan Loewen
5b2f35747b X11: Scale cursor when SmartSizing is on
(cherry picked from commit f4f795f3233c56fe7f4cd579777115b77f49da1e)
2021-02-25 09:51:41 +01:00
Nathan Loewen
d2b684ff40 let freerdp_image_scale() determine step size
(cherry picked from commit cba618115471a7072902aa137af5962f0e0c4c1e)
2021-02-25 09:51:41 +01:00
akallabeth
0195aac2ea Respect invalidRegion in progressive_compress
(cherry picked from commit 4a7ec674e601e3680161a0dfbda67dc07477eb8b)
2021-02-25 09:51:41 +01:00
akallabeth
1a4c1de6a8 Fixed progressive decoding without subbanddiff
(cherry picked from commit e3445eefab77c6666d760fa042f141c0a2d2965a)
2021-02-25 09:51:41 +01:00
akallabeth
84693e93b6 Cleaned up rfx API
(cherry picked from commit 25a8abc4eb0a6d6a115169b5f0f762e3308b4026)
2021-02-25 09:51:41 +01:00
akallabeth
7bec222d85 Clean up drdynvc channels porperly locked.
(cherry picked from commit 7f1cca78aa9e4cf65cb38c9b741566fbf7dce2d0)
2021-02-25 09:51:41 +01:00