https://bugs.winehq.org/show_bug.cgi?id=55849 Bug ID: 55849 Summary: Wine sends WM_(SYS)KEYUP event twice for Alt (and such) key if Fcitx/iBus daemon is running Product: Wine Version: 8.19 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv Assignee: wine-bugs(a)winehq.org Reporter: emuser20140816(a)gmail.com Distribution: --- Created attachment 75355 --> https://bugs.winehq.org/attachment.cgi?id=75355 A test application I've attached an example application that reproduces this issue (win32-syskey-test.exe). The expected behavior of this application is to toggle background color (red/green) by pressing Alt (VK_MENU) key. This application behaves correctly on Windows, and behaves correctly on Wine too but only when the Fcitx/iBus daemon (with XIM integration enabled) is *not* running: WM_SYSKEYDOWN: wParam: 18, lParam: 0x20380001 WM_SYSKEYUP: wParam: 18, lParam: 0xc0380001 However, the application behaves differently on Wine if Fcitx/iBus daemon is running: WM_SYSKEYDOWN: wParam: 18, lParam: 0x20380001 WM_SYSKEYUP: wParam: 18, lParam: 0xc0380001 WM_KEYUP: wParam: 18, lParam: 0xc0380001 and the toggle switch no longer works. (This affects every application that takes a similar approach, i.e. an application that uses Alt, Ctrl or Shift key to toggle something on WM_(SYS)KEYUP event.) The workaround for this issue is either quit the Fcitx/iBus daemon (which makes IME unusable for this application) or revert the commit https://gitlab.winehq.org/wine/wine/-/commit/a4a5a2ec121eeb2a7cd4ffbb5ba7b29... (which requires complete rebuild from wine source tree). -- 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.