http://bugs.winehq.org/show_bug.cgi?id=59485 Bug ID: 59485 Summary: Everquest Mouse clicks via Gamescope with multiple concurrent instances under wayland/kde Product: Wine-staging Version: 11.1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: -unknown Assignee: wine-bugs@list.winehq.org Reporter: tlindell@gmail.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: --- Created attachment 80481 --> http://bugs.winehq.org/attachment.cgi?id=80481 Stand alone fix blunt force on directx8 I ran into this issue running EverQuest under Wine 11.1 inside gamescope (multiple concurrent instances on Wayland/KDE Plasma 6). Mouse movement works but clicks are completely dead in-game. Traced it to dlls/dinput/mouse.c — DirectInput8 enables use_raw_input which routes button events through XI2 RawButtonPress. Gamescope's XWayland translates wl_pointer.button into core X11 ButtonPress but doesn't generate XI2 RawButtonPress events (those come from xf86-input which isn't wired to the Wayland pointer protocol). So DirectInput8 sees motion via XI2 RawMotion but never gets button events. Disabling use_raw_input for DirectInput8 forces the WH_MOUSE_LL hook fallback which reads standard WM_LBUTTONDOWN/WM_RBUTTONDOWN from core X11 ButtonPress — those work fine under XWayland. Attaching a patch against Wine 11.1. It's a blunt workaround (unconditionally disables raw input for dinput8 mouse) — a proper fix would probably detect whether XI2 RawButtonPress is actually available at runtime and fall back automatically. To reproduce: # Wine prefix with EverQuest installed at drive_c/EverQuest/ export WINEPREFIX=~/eq-prefix # eqclient.ini must have: Width=1920, Height=1080, Fullscreen=1 # Launch under gamescope with --force-grab-cursor: gamescope -w 1920 -h 1080 -W 1920 -H 1080 --backend sdl --force-grab-cursor -- \ wine eqgame.exe patchme # Mouse movement works, clicks do nothing. # Launch a second instance in another terminal and the issue is consistent. # Without gamescope (plain: wine eqgame.exe patchme) clicks work fine. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.