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:
Vitaly Ostanin 2026-06-10 13:47:45 +03:00
commit 6ca0aac23b

View file

@ -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) {