mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-06-22 10:02:20 +00:00
fix(linux/wayland): fire sessionEnterOrLeave in Flutter input mode
On Wayland the call must fire even when the input source is Flutter, because the Rust side uses it to drive the keyboard shortcuts inhibitor.
This commit is contained in:
parent
7863e02e01
commit
6ca0aac23b
1 changed files with 3 additions and 1 deletions
|
|
@ -1155,7 +1155,9 @@ class InputModel {
|
|||
}
|
||||
_relativeMouse.onEnterOrLeaveImage(enter);
|
||||
_flingTimer?.cancel();
|
||||
if (!isInputSourceFlutter) {
|
||||
// On Linux Wayland the call must fire even in Flutter input mode:
|
||||
// the Rust side uses it to drive the keyboard shortcuts inhibitor.
|
||||
if (!isInputSourceFlutter || (isLinux && bind.mainCurrentIsWayland())) {
|
||||
bind.sessionEnterOrLeave(sessionId: sessionId, enter: enter);
|
||||
}
|
||||
if (!isWeb && enter) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue