https://bugs.winehq.org/show_bug.cgi?id=49667
Bug ID: 49667 Summary: user32-rawinput-mouse: can't use other programs normally while running Elite Dangerous Product: Wine-staging Version: 5.14 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: kolAflash@kolahilft.de CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
This is mouse bug is analogous to this keyboard bug: https://bugs.winehq.org/show_bug.cgi?id=48419
When user32-rawinput-mouse is being used, it's problematic to click onto other X11 windows while a "Elite Dangerous" is running.
In detail: 1. configure "virtual desktop" mode via winecfg 2. Start EliteDangerous in Wine 3. Open a view inside EliteDangerous where every mouseclick (independent of cursor position) will have an effect (e.g. cockpit mode -> mouse-1 fires weapon) 4. switch to another X11 window (e.g. Firefox) 5. click onto something When clicking in Firefox, the click also get send into the game. So e.g. the primary weapon gets fired in the game.
Alternatively, the cursor can also positioned over an ingame button (e.g. in the main menu). Then get another window into foreground without moving the mouse (e.g. alt-tab) and then click. This will trigger the ingame button over which the cursor lasted before switching windows.
Workaround: ./patches/patchinstall.sh DESTDIR=../wine-5.14 --all -W user32-rawinput-mouse -W user32-rawinput-mouse-experimental -W user32-rawinput-hid (user32-rawinput-mouse-experimental and user32-rawinput-hid depend on user32-rawinput-mouse)
For more details, please see: https://bugs.winehq.org/show_bug.cgi?id=48419#c5