http://bugs.winehq.org/show_bug.cgi?id=58915
Bug ID: 58915 Summary: Some RPG Maker MZ games experience issues with input handling Product: Wine Version: 10.17 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: win32u Assignee: wine-bugs@winehq.org Reporter: lorenzofer@live.it Distribution: ---
Hi, Some RPG Maker games, epsecially the ones from the MZ variant, where sometimes some key press events aren't handled properly and are replayed in a delayed manner often more then once. Most games experience this issues in dialogue, where the dialogue start skipping fast without any user input, but there is a game Mansion Tour that is having issues even in the map or in battle mode.
The +key log show that when this happen it register a KeyPRess but after the NtUserTranslateMessage 1 -> PostMessageW(0x300ba,WM_CHAR,<x>,001c0001) for <x> in L"\r" there is not corresponding KeyRelease. This key is the key that after other inputs start replaying more the once delayed.
bisect shows d3cb94b543e8ccc4a6baa7a8a2c31142a7b1a814 is the first bad commit commit d3cb94b543e8ccc4a6baa7a8a2c31142a7b1a814 Author: Rémi Bernon rbernon@codeweavers.com Date: Fri Oct 3 10:46:25 2025 +0200
win32u: Check QS_DRIVER bit before calling ProcessEvents.
dlls/win32u/message.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) while it doesn't revert cleanly, removing the if (check_internal_bits( QS_DRIVER )) before user_driver->pProcessEvents remove this regression
http://bugs.winehq.org/show_bug.cgi?id=58915
Lorenzo Ferrillo lorenzofer@live.it changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |d3cb94b543e8ccc4a6baa7a8a2c | |31142a7b1a814
http://bugs.winehq.org/show_bug.cgi?id=58915
Lorenzo Ferrillo lorenzofer@live.it changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |ArchLinux
http://bugs.winehq.org/show_bug.cgi?id=58915
--- Comment #1 from Lorenzo Ferrillo lorenzofer@live.it --- This seems linked to the QS_DRIVER bits to be setted in msg_queue_poll_event but then removed from set_queue_mask. I checked that removing the bit clear from set_queue_mask correct the issue too (even if not correct)
http://bugs.winehq.org/show_bug.cgi?id=58915
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=58915
Lorenzo Ferrillo lorenzofer@live.it changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rbernon@codeweavers.com
http://bugs.winehq.org/show_bug.cgi?id=58915
--- Comment #2 from Lorenzo Ferrillo lorenzofer@live.it --- Hi Rémi Bernon, sorry I put you in the CC list becouse the bisected commit was yours.
If there is need to test this game is a visible reproducer for me: https://kathinkapng.itch.io/mansion-tour
http://bugs.winehq.org/show_bug.cgi?id=58915
--- Comment #3 from Rafał Mużyło galtgendo@o2.pl --- Dupe of bug 58908, though it seems the solution from bug 58893 won't help neither here nor there.
http://bugs.winehq.org/show_bug.cgi?id=58915
--- Comment #4 from Lorenzo Ferrillo lorenzofer@live.it --- (In reply to Rafał Mużyło from comment #3)
Dupe of bug 58908, though it seems the solution from bug 58893 won't help neither here nor there.
The user that reported that bug reported that adding that XFlush worked for him, but it doesn't work here, not surprisingly. Seems another XFLush, somewhere near input handling should be needed. Not sure if the mix of poll and epoll can cause some issues.
http://bugs.winehq.org/show_bug.cgi?id=58915
--- Comment #5 from Lorenzo Ferrillo lorenzofer@live.it --- (In reply to Lorenzo Ferrillo from comment #4)
(In reply to Rafał Mużyło from comment #3)
Dupe of bug 58908, though it seems the solution from bug 58893 won't help neither here nor there.
The user that reported that bug reported that adding that XFlush worked for him, but it doesn't work here, not surprisingly. Seems another XFLush, somewhere near input handling should be needed. Not sure if the mix of poll and epoll can cause some issues.
edit: for some reason I read the 2 bugs as the same, so the first part of the post before doesn't make much sense.
http://bugs.winehq.org/show_bug.cgi?id=58915
--- Comment #6 from Rémi Bernon rbernon@codeweavers.com --- (In reply to Lorenzo Ferrillo from comment #2)
Hi Rémi Bernon, sorry I put you in the CC list becouse the bisected commit was yours.
If there is need to test this game is a visible reproducer for me: https://kathinkapng.itch.io/mansion-tour
I've tried that game but it doesn't seem to start, is there anything that needs to be installed first?
I tried a couple of other itch.io games tagged as RPG Maker MZ but also not been able to reproduce the issue.
Which desktop environment are you using? X11 or XWayland? Any IME involved maybe?
Would you mind making a log with WINEDEBUG=+timestamp,+pid,+x11drv,+event,+win,+key,+msg,+message,+imm,+xim
http://bugs.winehq.org/show_bug.cgi?id=58915
--- Comment #7 from Lorenzo Ferrillo lorenzofer@live.it --- Hi Rémi, This is under X11 and KDE Plasma 6.5.1. No IME involved.
I didn't install any prerequisite for it to work (and prefix is new)
http://bugs.winehq.org/show_bug.cgi?id=58915
--- Comment #8 from Lorenzo Ferrillo lorenzofer@live.it --- Created attachment 79616 --> http://bugs.winehq.org/attachment.cgi?id=79616 log with requested debug
This is the requested log, with experiencing lost input in main menu and with fast skipping dialogue (generally triggered by Enter key, enter was one of the input skipped in main menu) in the new game scenario Added a -dxgi to prevent some spam from a semi stub dxgi function
http://bugs.winehq.org/show_bug.cgi?id=58915
--- Comment #9 from Lorenzo Ferrillo lorenzofer@live.it --- of it may be important keyboard layout is italian (but it do happen also with mouse inputs)
http://bugs.winehq.org/show_bug.cgi?id=58915
--- Comment #11 from Lorenzo Ferrillo lorenzofer@live.it --- Hi Rémi, the attached patch (included only the winex11 changes) seems to fix the issue for good
http://bugs.winehq.org/show_bug.cgi?id=58915
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |0a7082d37efba17f5badea361c8 | |727f424192e68 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #12 from Rémi Bernon rbernon@codeweavers.com --- Thanks, this should be fixed after 0a7082d37efba17f5badea361c8727f424192e68 then.
http://bugs.winehq.org/show_bug.cgi?id=58915
drakinosh84@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |drakinosh84@gmail.com
--- Comment #13 from drakinosh84@gmail.com --- *** Bug 58948 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=58915
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #14 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 10.19.