mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-12-04 23:47:04 +00:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
57d312404e | ||
|
|
5499dafec8 | ||
|
|
0f65927e91 | ||
|
|
ecf60f961e |
No files matched your search
@@ -566,12 +566,13 @@ class _RemotePageState extends State<RemotePage> with WidgetsBindingObserver {
|
||||
}
|
||||
return Container(
|
||||
color: MyTheme.canvasColor,
|
||||
child: inputModel.isPhysicalMouse.value
|
||||
? getBodyForMobile()
|
||||
: RawTouchGestureDetectorRegion(
|
||||
child: getBodyForMobile(),
|
||||
ffi: gFFI,
|
||||
),
|
||||
child: withKeyHelpTools(
|
||||
inputModel.isPhysicalMouse.value
|
||||
? getBodyForMobile()
|
||||
: RawTouchGestureDetectorRegion(
|
||||
child: getBodyForMobile(),
|
||||
ffi: gFFI,
|
||||
)),
|
||||
);
|
||||
}),
|
||||
),
|
||||
@@ -712,6 +713,27 @@ class _RemotePageState extends State<RemotePage> with WidgetsBindingObserver {
|
||||
!gFFI.canvasModel.cursorEmbedded &&
|
||||
!gFFI.inputModel.relativeMouseMode.value;
|
||||
|
||||
// The key bar sits above the canvas, outside its gesture region: a touch on the bar must not
|
||||
// also reach the canvas recognizers, which would send it to the remote as a mouse event.
|
||||
// The cursor and the touch-mode virtual mouse stay above the bar, as they were inside the canvas
|
||||
// stack. The mouse-mode virtual mouse stays inside the region: see getBodyForMobile.
|
||||
Widget withKeyHelpTools(Widget body) => Stack(children: [
|
||||
Positioned.fill(child: body),
|
||||
Obx(() {
|
||||
final chatKeyboardRequested =
|
||||
gFFI.chatModel.softKeyboardRequested.value;
|
||||
return KeyHelpTools(
|
||||
keyboardIsVisible: keyboardVisibilityController.isVisible &&
|
||||
(_showEdit || chatKeyboardRequested),
|
||||
showGestureHelp: _showGestureHelp);
|
||||
}),
|
||||
if (showCursorPaint) CursorPaint(widget.id),
|
||||
if (gFFI.ffiModel.touchMode)
|
||||
FloatingMouse(
|
||||
ffi: gFFI,
|
||||
),
|
||||
]);
|
||||
|
||||
Widget getBodyForMobile() {
|
||||
return Container(
|
||||
color: MyTheme.canvasColor,
|
||||
@@ -723,14 +745,6 @@ class _RemotePageState extends State<RemotePage> with WidgetsBindingObserver {
|
||||
right: 10,
|
||||
child: QualityMonitor(gFFI.qualityMonitorModel),
|
||||
),
|
||||
Obx(() {
|
||||
final chatKeyboardRequested =
|
||||
gFFI.chatModel.softKeyboardRequested.value;
|
||||
return KeyHelpTools(
|
||||
keyboardIsVisible: keyboardVisibilityController.isVisible &&
|
||||
(_showEdit || chatKeyboardRequested),
|
||||
showGestureHelp: _showGestureHelp);
|
||||
}),
|
||||
SizedBox(
|
||||
width: 0,
|
||||
height: 0,
|
||||
@@ -762,14 +776,9 @@ class _RemotePageState extends State<RemotePage> with WidgetsBindingObserver {
|
||||
).workaroundFreezeLinuxMint(),
|
||||
),
|
||||
];
|
||||
if (showCursorPaint) {
|
||||
paints.add(CursorPaint(widget.id));
|
||||
}
|
||||
if (gFFI.ffiModel.touchMode) {
|
||||
paints.add(FloatingMouse(
|
||||
ffi: gFFI,
|
||||
));
|
||||
} else {
|
||||
// Holding a virtual button while another finger drags needs both pointers in the canvas
|
||||
// recognizers (isSpecialHoldDragActive), so these stay inside the gesture region.
|
||||
if (!gFFI.ffiModel.touchMode) {
|
||||
paints.add(FloatingMouseWidgets(
|
||||
ffi: gFFI,
|
||||
));
|
||||
|
||||
@@ -24,7 +24,7 @@ use lazy_static::lazy_static;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use base::platform::linux::{WaylandDisplayInfo, CMD_SH};
|
||||
use hbb_common::{anyhow::anyhow, bail, config, serde_json, tokio, ResultType};
|
||||
use hbb_common::{anyhow::anyhow, bail, config, serde_json, ResultType};
|
||||
|
||||
use super::capturable::PixelProvider;
|
||||
use super::capturable::{Capturable, Recorder};
|
||||
|
||||
+3
-3
@@ -830,8 +830,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("drm-capture-tip", "Cattura lo schermo direttamente dalla scheda grafica tramite il servizio RustDesk, senza il prompt di condivisione dello schermo Wayland, anche al login schermo. Potrebbe non funzionare con tutti i dispositivi; se le connessioni chiedono ancora di condividere lo schermo, disabilita questa opzione o usa X11. La modifica di questa opzione disconnetterà le sessioni attuali."),
|
||||
("wayland-drm-tip", "Per l'accesso non presidiato in Wayland, prova 'Cattura schermo DRM', o se non funziona usa X11."),
|
||||
("login-wayland-drm-tip", "Per accedere alla schermata di accesso Wayland, prova 'Cattura schermo DRM' o passa a X11."),
|
||||
("Keyboard mode", ""),
|
||||
("Enable Unicode input", ""),
|
||||
("unicode-input-tip", ""),
|
||||
("Keyboard mode", "Modo tastiera"),
|
||||
("Enable Unicode input", "Abilita input Unicode"),
|
||||
("unicode-input-tip", "Cattura testo Unicode inviato da strumenti come KeePassXC Auto-Type. Richiede input sorgente 1."),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::*;
|
||||
use hbb_common::{allow_err, anyhow};
|
||||
use hbb_common::anyhow;
|
||||
use base::platform::linux::DISTRO;
|
||||
use scrap::{
|
||||
is_cursor_embedded, set_map_err,
|
||||
|
||||
Reference in new issue
Block a user