Skip to content

Touch/Mouse input not working on Linux (Wayland + Xwayland) #42

Description

@furllmm

Environment:

OS: Zorin OS (Ubuntu 24.04 based)
Session: Wayland (running app via Xwayland)
GPU: Intel UHD (ADL GT2)
Android Device: Samsung SM-A750F (Android 10)
Connection: WiFi ADB (192.168.1.33:5555)
Android Dex Version: v0.9 (latest from GitHub)
Scrcpy Server Version: 3.3.3
Bug Description: Touch/mouse input does not work in Android Dex. The mirrored screen displays correctly and FPS is good, but clicking on apps or UI elements has no effect. The mouse cursor moves but clicks are not forwarded to the Android device.

Expected Behavior: Mouse clicks should be translated to touch events on the Android device.

What I Tested:

Stock scrcpy (v1.25) works perfectly — touch and mouse input work as expected
adb shell input tap works correctly
The issue is specific to Android Dex, not the system
Logs:

[Scrcpy-Server] WARN: Unknown server option: keyboard
[Scrcpy] Connecting sockets — video=true audio=false control=true meta=false
Additional Info:

Control commands work fine (e.g., start_app, wm density)
Only touch/mouse input injection is broken
The app runs through Xwayland since the system session is Wayland
Possible Cause: The Flutter rendering layer may not be capturing mouse events and forwarding them to the scrcpy control channel properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions