Commit Graph

481 Commits

Author SHA1 Message Date
Saverio Miroddi
c7f452752d Remove SERVER_CLIPBOARD_ENABLED unsafe code, by using AtomicBool 2022-05-24 18:12:33 +02:00
Saverio Miroddi
7f50fe3ea0 Remove KEYBOARD_HOOKED unsafe code, by using AtomicBool
For supported types, static R/W globals unsafe code can be replaced by safe `Atomic*` types.

The pattern of usage is simple:

- AtomicBool#swap is used to fetch the old `KEYBOARD_HOOKED` value, while setting it to true;
- if the old value was true, there is effectively no change to `KEYBOARD_HOOKED`, and the flow exits from the enclosing function;
- if the old value was false, execute the function (the new `KEYBOARD_HOOKED` has been set to true by swap()).

The most conservative ordering is used, as the context is not performance-sensitive.

Atomics are not supported on every platform, but the project assumes x86-64, which supports them.
2022-05-22 18:48:08 +02:00
Viktor
4a72702679
Update ru.rs 2022-05-22 10:49:37 +03:00
RustDesk
6a11981675
Merge pull request #581 from mrladeia/patch-1
Update ptbr.rs
2022-05-22 12:11:09 +08:00
Chris Cavalluzzi
a5d4cad5b7 Add dark theme for main desktop client window
Signed-off-by: Chris Cavalluzzi <chriscavalluzzi@gmail.com>
2022-05-21 19:11:50 -06:00
Marcos Rodrigo Ladeia
125259fe0e
Update ptbr.rs
Correcting pt-BR translation
2022-05-21 19:15:42 -03:00
SiderealArt
534454a055
Update tw.rs 2022-05-20 19:38:29 +08:00
Kingtous
0958126739 fix: windows -> unix 2022-05-20 11:31:09 +08:00
Kingtous
c4663ecbf3 fix: linux <- windows subfolder collepsed 2022-05-20 10:53:10 +08:00
RustDesk
b267da2e70
Merge pull request #564 from Heap-Hop/master
mobile & web rgba stream
2022-05-20 09:39:15 +08:00
csf
7c5a136b6b mobile & web rgba stream 2022-05-20 09:28:46 +08:00
rustdesk
920a3c0a4f refactor 2022-05-20 00:22:43 +08:00
rustdesk
a1a41bea06 missed commit 2022-05-20 00:11:48 +08:00
rustdesk
8d34496db8 rename 2022-05-20 00:11:22 +08:00
csf
f5027382d9 update LatencyController 2022-05-19 23:10:06 +08:00
csf
a071eeb710 fix audio latency 2022-05-19 18:39:13 +08:00
RustDesk
31a40538dc
Merge pull request #545 from Kingtous/feat/file_transfer_option_mobile
feat: [mobile] more precise control method for transfering files
2022-05-18 17:02:39 +08:00
rustdesk
88c8da5402 fix cm 2022-05-18 16:12:50 +08:00
Kingtous
42f2ebc8e6 opt: clean code 2022-05-18 15:45:45 +08:00
Kingtous
3bf3b7950f fix: compile with master 2022-05-17 23:26:05 +08:00
Kingtous
fc39c0ffc0 add: android file transfer logic 2022-05-17 23:03:55 +08:00
Kingtous
c4d41c21f3 fix: compile 2022-05-17 23:03:55 +08:00
RustDesk
7a3e95eddd
Merge pull request #544 from Heap-Hop/event_channel
use new event channel for mobile and web
2022-05-17 22:09:03 +08:00
csf
7296e55435 del unused 2022-05-17 21:58:15 +08:00
csf
a7af7967f6 use new event channel for mobile and web 2022-05-17 19:59:37 +08:00
Kingtous
39eb1b7211 opt: add resume btn 2022-05-16 14:45:17 +08:00
Kingtous
d186dd26a2 fix: change state to sync jobs to adapt master branch logic 2022-05-16 14:45:17 +08:00
Kingtous
c96c0df645 fix: rebase conflict 2022-05-16 14:45:17 +08:00
Kingtous
8a6c3fe70a fix: invert inline 2022-05-16 14:45:17 +08:00
Kingtous
52fd312ff3 opt: clean code 2022-05-16 14:45:17 +08:00
Kingtous
a2bc2a21bb add: file_num offset 2022-05-16 14:45:17 +08:00
Kingtous
9dbd94daac feat: load last job 2022-05-16 14:45:17 +08:00
Kingtous
77bb821ecf fix: to string 2022-05-16 14:45:17 +08:00
Kingtous
b3f523f65e fix: serde 2022-05-16 14:45:17 +08:00
Kingtous
11e0d2cbf1 add: job logic 2022-05-16 14:45:17 +08:00
Kingtous
2caa2db463 fix: 2022-05-16 14:45:17 +08:00
Kingtous
83c75409e8 add: msg 2022-05-16 14:45:17 +08:00
Kingtous
74a3799b78 add: meta info 2022-05-16 14:45:17 +08:00
Kingtous
529e5104c7 fix: comma 2022-05-16 14:45:17 +08:00
Kingtous
02f214e39a opt: name, imports 2022-05-16 14:45:17 +08:00
Kingtous
265e3c760e fix: confirmDelete -> cancel Delete 2022-05-16 14:45:17 +08:00
Kingtous
74b3cb1c58 fix: skip issue 2022-05-16 14:45:17 +08:00
Kingtous
4975c9b54d add: overwrite version limit, remove debug log 2022-05-16 14:45:17 +08:00
Kingtous
050952e5e8 fix: confirmDelete -> cancel Delete 2022-05-16 14:45:16 +08:00
Kingtous
96c7202e4b add: remote ret back override confirmation[2/2] 2022-05-16 14:45:16 +08:00
Kingtous
c17e77148e add: remote ret back override confirmation 2022-05-16 14:45:16 +08:00
Kingtous
51caeafebd add: server override 2022-05-16 14:45:16 +08:00
kingtous
8854fcbe85 add: automatic accept confirm log 2022-05-16 14:45:16 +08:00
kingtous
5caf28ebe6 add: send confirm request logic 2022-05-16 14:45:16 +08:00
kingtous
b08877031f feat: server connections 2022-05-16 14:45:16 +08:00