206 Commits

Author SHA1 Message Date
fufesou
7a3e1fe648
fix: ->macos, mouse events, key flags (#9733)
* fix: win->macos, mouse events,  key flags

Signed-off-by: fufesou <linlong1266@gmail.com>

* comments

Signed-off-by: fufesou <linlong1266@gmail.com>

---------

Signed-off-by: fufesou <linlong1266@gmail.com>
2024-10-24 14:33:37 +08:00
fufesou
498b8ba3d6
fix: wayland CapsLock (#9641)
* fix: wayland CapsLock

Signed-off-by: fufesou <linlong1266@gmail.com>

* unformat for less changes

Signed-off-by: fufesou <linlong1266@gmail.com>

* refact: input, LockModes, do not check evt.down

Remove `evt.down`(revert the change) to avoid potential bugs.

Signed-off-by: fufesou <linlong1266@gmail.com>

---------

Signed-off-by: fufesou <linlong1266@gmail.com>
2024-10-14 11:46:28 +08:00
fufesou
21bcfd173d
fix: wayland, rdp input, mouse, scale (#9402)
* fix: wayland, rdp input, mouse, scale

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix: rdp input, mouse, scale, check 0

Signed-off-by: fufesou <linlong1266@gmail.com>

---------

Signed-off-by: fufesou <linlong1266@gmail.com>
2024-09-20 11:15:19 +08:00
fufesou
ddd3401bd7
fix: keyboard, translate mode (#9406)
hotkey, linux -> win

Signed-off-by: fufesou <linlong1266@gmail.com>
2024-09-20 10:52:19 +08:00
21pages
5abe42f66c
not run get window focus if no multiple displays (#9174)
Signed-off-by: 21pages <sunboeasy@gmail.com>
2024-08-26 10:37:35 +08:00
fufesou
f31e60af5b
fix: crash, drop tokio RunTime in async context (#9091)
* fix: crash, drop tokio RunTime in async context

Signed-off-by: fufesou <linlong1266@gmail.com>

* chore

Signed-off-by: fufesou <linlong1266@gmail.com>

---------

Signed-off-by: fufesou <linlong1266@gmail.com>
2024-08-16 14:55:42 +08:00
dignow
baf70da2fe
fix: trackpad, reverse horizontal scroll (#8827)
Signed-off-by: dignow <linlong1265@gmail.com>
2024-07-25 14:44:58 +08:00
21pages
3f11d9cdb6
remove Instant sub (#8714)
which cause crash when connect to windows just startup

Signed-off-by: 21pages <sunboeasy@gmail.com>
2024-07-15 10:49:09 +08:00
fufesou
003b9e48e1
fix: macos, crash, key input. --server also has UI. (#7878)
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2024-04-30 22:53:42 +08:00
Sahil Yeole
3811f41076
Feat: Follow remote cursor and window focus | Auto display switch (#7717)
* feat: auto switch display on follow remote cursor

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* feat: auto switch display on follow remote window focus

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix build and remove unused imports

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix build

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix build

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix linux get_focused_window_id

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* lock show remote cursor when follow remote cursor is enabled

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix config

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* prevent auto display switch on show all display and displays as individual windows

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix options

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix options

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* remove unused function

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* remove unwraps and improve iterations

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* set updateCursorPos to false to avoid interrupting remote cursor

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* update lang

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix web build

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* update checks for options and enable in view mode

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* use focused display index for window focus service

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* use window center for windows display focused

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* remove unused imports

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix build

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* use libxdo instead of xdotool

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix multi monitor check

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* enable show cursor when follow cursor is default

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* remove show_all_displays,use runtime state instead

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix show cursor lock state on default

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* remove view mode with follow options

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix build

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* use separate message for follow current display

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix options

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* sciter support for follow remote cursor and window

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* add check for ui session handlers count

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* use cached displays and remove peer info write

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* No follow options when show all displays

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* No follow options when multi ui session

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* turn off follow options when not used|prevent msgs

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* use window center for switch in linux

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* use subbed display count to prevent switch msgs

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix build

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix web build

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* move subbed displays count

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix build

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* add noperms for window focus

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* add subscribe for window focus

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* remove window_focus message and unsub on multi ui

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* add multi ui session field

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

---------

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
Co-authored-by: RustDesk <71636191+rustdesk@users.noreply.github.com>
2024-04-25 13:26:02 +08:00
writegr
9b2ec62be9
chore: fix some typos in comments (#7752)
Signed-off-by: writegr <wellweek@outlook.com>
2024-04-18 14:39:38 +08:00
fufesou
befac94473
Fix. macos, workaround fn (#7319)
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2024-03-05 11:31:41 +08:00
21pages
1bc11a207a
fix rdp session ctrl+alt+delete (#7258)
Signed-off-by: 21pages <pages21@163.com>
2024-02-26 13:22:21 +08:00
Sahil Yeole
445fe6e714
Feat: Wayland flatpak input support | Remote desktop portal (#6675)
* autogen portal code

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* use remote desktop portal

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* remove clipboard portal in favour of #6586

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* remove clipboard portal

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* use select_devices for input capture

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* remove embedded cursor code as not being used | return session path for input capture

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* setup rdp input

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* remove simulate example

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* setup rdp input raw key events + mouse movements

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix rdp raw key input

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* refact rdp raw key inpuy & fix right meta key

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* refact and support rdp layout mode key input

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* support rdp mouse clicks

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* support rdp mouse scroll

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* support rdp key sequence input

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* use rdp input only when uinput is not available

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* combine rdp input and get_capturables into a single rdp request

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* rdp fix build

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* rdp fix build

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix rdp caps lock

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* format pipewire.rs

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* format rdp_input.rs

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* revert #6628 as rdp request state is now managed (better solution)

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* fix rdp crash on arch kde

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* rdp_input.rs improvements

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* refact request_remote_desktop

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* improve unwraps

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* remove unwraps

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

* use session references instead of clones

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>

---------

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
2023-12-19 10:44:58 +08:00
dignow
b3948910ff fix is x11, on conn
Signed-off-by: dignow <linlong1265@gmail.com>
2023-10-21 13:10:51 +08:00
dignow
013d307bcd feat, multi_flutter_ui_sessions
Signed-off-by: dignow <linlong1265@gmail.com>
2023-10-14 12:26:24 +08:00
fufesou
7ffe11b000 fix, macos as the controlled side, crash on disconnect
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-09-17 09:17:51 +08:00
fufesou
7b37e5183c update rdev, fix grab system utf8, fallback on linux
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-09-15 15:35:44 +08:00
rustdesk
542d86b667 remove active_mouse_ which is very bad implementation 2023-08-16 18:57:56 +08:00
21pages
aa740f4263 remove many unwrap and enum_value_or_default
Signed-off-by: 21pages <pages21@163.com>
2023-07-23 20:00:58 +08:00
dignow
c86a8fff03 add pointer device event
Signed-off-by: dignow <linlong1265@gmail.com>
2023-07-19 01:18:10 +08:00
dignow
780cb37d46 tmp debug
Signed-off-by: dignow <linlong1265@gmail.com>
2023-07-18 23:10:42 +08:00
dignow
7bbc5183db trackpad scale, mid commit
Signed-off-by: dignow <linlong1265@gmail.com>
2023-07-18 21:04:12 +08:00
fufesou
3ea7e0aa4b fix win trackpad, wheel delta
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-06-12 15:04:55 +08:00
fufesou
6e21f8410a debug, macos trackpad, flutter
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-06-11 15:56:09 +08:00
rustdesk
9a1fee792e fix android/ios ci 2023-06-08 00:35:11 +08:00
fufesou
ab1e7109bb fix build
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-06-07 22:35:02 +08:00
fufesou
2b9026526e fix build
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-06-07 20:42:07 +08:00
fufesou
c4f9650d7f fix, win mouse, touchpad scroll
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-06-07 20:01:01 +08:00
fufesou
db71dd039d plugin_framework, manager, install plugin
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-05-12 08:48:14 +08:00
rustdesk
472448ec9c fix ci 2023-05-06 09:27:58 +08:00
fufesou
4d16d9566a fix cursor active, portable service
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-05-05 08:24:08 -07:00
fufesou
13fe997447 add comment
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-05-05 20:22:34 +08:00
fufesou
3aabd8f5ae fix cursor active in portable service, update peer input cursor time
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-05-05 20:16:54 +08:00
fufesou
5dc83359a5 add cursor active logic for portable service
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-05-05 18:11:04 +08:00
fufesou
1db40da812 fix build win
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-05-04 15:02:05 +08:00
fufesou
477cbff489 fix cursor move on macOS
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-05-04 14:38:04 +08:00
fufesou
d8dc56a743 plugin_framework, debug config, mid commit
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-04-24 19:57:20 +08:00
fufesou
e833f92219 fix translate mode, simulate unicode
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-04-21 16:03:14 +08:00
fufesou
286715d336 win, translate mode, release scancode
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-04-20 18:38:52 +08:00
fufesou
d8dbf72ad2 simulate scancode for translate mode
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-04-20 12:15:38 +08:00
fufesou
2ce1df1ad4 fix, legacy mode, numlock
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-04-09 12:14:01 +08:00
fufesou
241cb1d24e trivial changes
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-04-09 00:36:59 +08:00
fufesou
579b21066f fix, win, legacy mode, shift + home
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-04-09 00:06:17 +08:00
fufesou
09f9b515f6 remove unused call
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-04-08 22:54:36 +08:00
fufesou
09ba9cddcd debug, win, legacy mode, led sync
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-04-08 22:06:24 +08:00
fufesou
cee06f0425 remove warn
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-04-08 21:26:19 +08:00
fufesou
20734f278e remove unused call
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-04-08 21:24:29 +08:00
fufesou
0d5d073a43 trivial changes
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-04-08 20:28:34 +08:00
fufesou
d66ad5e0cb remove unused
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2023-04-08 20:17:55 +08:00