http://bugs.winehq.org/show_bug.cgi?id=11856
Summary: Any application: keyboard focus lost after a popup is unmapped, if SCIM is enabled Product: Wine Version: 0.9.56. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: winex11.drv AssignedTo: wine-bugs@winehq.org ReportedBy: angavrilov@gmail.com
Created an attachment (id=11143) --> (http://bugs.winehq.org/attachment.cgi?id=11143) WINEDEBUG=event,x11drv; generated using 0.9.52; edited
Applications stop receiving keyboard events after a popup window (for example, a menu) is unmapped, until global focus is switched out of the application and back.
Environment: Fedora Linux 7, KDE 3.5.8, SCIM 1.4.5, Anthy 9100d, WINE 0.9.52~0.9.56 (basically, the latest versions from the official update repositories) SCIM enabled and configured for Japanese input using Anthy.
Steps to reproduce:
1) Start WINE notepad with SCIM enabled. 2) Type some text to ensure that the keyboard works 3) Invoke a menu item, e.g. Undo or Paste ==> Once the menu popup disappears, keyboard focus is completely lost, including all menu shortcuts
4) Do one of the following: a) Move or resize the window b) Switch focus to another application and back c) Switch to a different keyboard layout using a global KDE shortcut ==> Keyboard functionality is restored
Possibly related problem:
Keyboard does not work at all when a virtual desktop is used, i.e: XMODIFIERS=@im=SCIM wine explorer /desktop=test,1024x768 notepad.exe
Work-around:
XMODIFIERS='' fixes both problems.
P.S. It seems that keyboard input is restored when a FocusIn event is received, but I may be wrong (all of the three actions above cause FocusOut+FocusIn to be received).