Fix/cursor macos multi displays (#12791)

* fix: cursor, whiteboard, pos

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

* fix: whiteboard, macos, multi displays

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

---------

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2025-09-01 13:02:06 +08:00
committed by GitHub
parent 42be442385
commit d499098c4f
3 changed files with 206 additions and 146 deletions

View File

@@ -2329,6 +2329,8 @@ impl Connection {
self.show_my_cursor,
);
} else if self.show_my_cursor {
#[cfg(target_os = "macos")]
self.retina.on_mouse_event(&mut me, self.display_idx);
self.input_mouse(
me,
self.inner.id(),

View File

@@ -992,8 +992,8 @@ pub fn handle_pointer_(evt: &PointerDeviceEvent, conn: i32) {
pub fn handle_mouse_(
evt: &MouseEvent,
conn: i32,
username: String,
argb: u32,
_username: String,
_argb: u32,
simulate: bool,
_show_cursor: bool,
) {
@@ -1002,7 +1002,7 @@ pub fn handle_mouse_(
}
#[cfg(any(target_os = "windows", target_os = "macos"))]
if _show_cursor {
handle_mouse_show_cursor_(evt, conn, username, argb);
handle_mouse_show_cursor_(evt, conn, _username, _argb);
}
}