rustdesk/src
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
..
client Feat: Follow remote cursor and window focus | Auto display switch (#7717) 2024-04-25 13:26:02 +08:00
hbbs_http fix: http/https proxy (#7821) 2024-04-25 11:46:21 +08:00
lang Feat: Follow remote cursor and window focus | Auto display switch (#7717) 2024-04-25 13:26:02 +08:00
platform Feat: Follow remote cursor and window focus | Auto display switch (#7717) 2024-04-25 13:26:02 +08:00
plugin fix: http/https proxy (#7821) 2024-04-25 11:46:21 +08:00
privacy_mode refact: win idd, x86 on x64 (#7796) 2024-04-23 17:00:41 +08:00
server Feat: Follow remote cursor and window focus | Auto display switch (#7717) 2024-04-25 13:26:02 +08:00
ui Feat: Follow remote cursor and window focus | Auto display switch (#7717) 2024-04-25 13:26:02 +08:00
auth_2fa.rs improve tfa 2024-03-20 20:00:29 +08:00
cli.rs revert back to async_trait since having to use 1.75 because of win7 2024-03-27 03:36:33 +08:00
client.rs Feat: Follow remote cursor and window focus | Auto display switch (#7717) 2024-04-25 13:26:02 +08:00
clipboard_file.rs tmp commit 2023-06-29 20:44:50 +08:00
common.rs fix: http/https proxy (#7821) 2024-04-25 11:46:21 +08:00
core_main.rs refact: win, idd control (#7789) 2024-04-22 10:37:08 +08:00
custom_server.rs fix: http/https proxy (#7821) 2024-04-25 11:46:21 +08:00
flutter_ffi.rs Feat: Follow remote cursor and window focus | Auto display switch (#7717) 2024-04-25 13:26:02 +08:00
flutter.rs Feat: Follow remote cursor and window focus | Auto display switch (#7717) 2024-04-25 13:26:02 +08:00
hbbs_http.rs fix: http/https proxy (#7821) 2024-04-25 11:46:21 +08:00
ipc.rs fix: http/https proxy (#7821) 2024-04-25 11:46:21 +08:00
keyboard.rs fix build 2023-11-29 20:58:40 +08:00
lan.rs no mask check for wol to avoid unexpected bug 2023-06-17 00:17:56 +08:00
lang.rs Update lang.rs 2024-04-10 00:23:45 +08:00
lib.rs Feat: Follow remote cursor and window focus | Auto display switch (#7717) 2024-04-25 13:26:02 +08:00
main.rs Correct copyright year (#7375) 2024-03-13 21:12:04 +08:00
naming.rs fix: http/https proxy (#7821) 2024-04-25 11:46:21 +08:00
port_forward.rs fix port forward 2fa (#6956) 2024-01-22 19:57:23 +08:00
privacy_mode.rs refact: win idd, x86 on x64 (#7796) 2024-04-23 17:00:41 +08:00
rendezvous_mediator.rs fix: http/https proxy (#7821) 2024-04-25 11:46:21 +08:00
server.rs Feat: Follow remote cursor and window focus | Auto display switch (#7717) 2024-04-25 13:26:02 +08:00
tray.rs modify comment 2024-03-28 11:52:43 +08:00
ui_cm_interface.rs remove warns 2023-11-14 21:01:31 +08:00
ui_interface.rs fix: http/https proxy (#7821) 2024-04-25 11:46:21 +08:00
ui_session_interface.rs Feat: Follow remote cursor and window focus | Auto display switch (#7717) 2024-04-25 13:26:02 +08:00
ui.rs fix: http/https proxy (#7821) 2024-04-25 11:46:21 +08:00
virtual_display_manager.rs refact: win idd, x86 on x64 (#7796) 2024-04-23 17:00:41 +08:00