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).
http://bugs.winehq.org/show_bug.cgi?id=11856
Charles Moyes TheChuckster@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |TheChuckster@gmail.com
--- Comment #1 from Charles Moyes TheChuckster@gmail.com 2008-05-30 20:03:10 --- I confirm this bug. It happens to me with Half-Life 2 deathmatch and Steam because there are popups notifying you when your Steam friends are playing games. When these popups appear on the screen, any game you play no longer registers any key presses. Also, when I try to ALT+TAB to regain focus, the game is not in the ALT+TAB list so I can never actually fix this problem. Therefore, I can't play any games that use Steam.
http://bugs.winehq.org/show_bug.cgi?id=11856
--- Comment #2 from Alexander angavrilov@gmail.com 2008-06-01 03:07:53 ---
When these popups appear on the screen, any game you play no longer registers any key presses.
Does it go away with SCIM disabled (e.g. by setting XMODIFIERS='')? If not, it's probably a different bug.
http://bugs.winehq.org/show_bug.cgi?id=11856
--- Comment #3 from Alexander angavrilov@gmail.com 2008-06-11 15:16:01 --- Recheck for wine-1.0-rc3, as shipped in Fedora 7 updates:
1) The simplest case with a popup menu in notepad has been fixed. However, activating and closing a separate window by keyboard still causes focus to be lost:
- Type some text - Ctrl-F - Type some text, which now goes into the find box - Esc - Keyboard does not work
2) Likewise, in the virtual desktop case, focus is irretrievably lost after one keypress (in 0.9.52 it didn't work at all).
3) During actual Japanese input, text is displayed at the bottom of the window, instead of being drawn at the cursor, and wine occasionally emits a line like:
fixme:imm:ImmReleaseContext (0x10026, 0x128520): stub
http://bugs.winehq.org/show_bug.cgi?id=11856
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=11856
--- Comment #4 from Austin English austinenglish@gmail.com 2009-02-16 02:07:58 --- Is this still an issue in current (1.1.15 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=11856
--- Comment #5 from Alexander angavrilov@gmail.com 2009-03-14 08:49:58 --- It appears that the first problem has been fixed in 1.1.15. However, the other two remain; namely, in the virtual desktop mode it is impossible to input more than one character per window, and fixme warnings still appear during Japanese input.
http://bugs.winehq.org/show_bug.cgi?id=11856
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #6 from Austin English austinenglish@gmail.com 2009-03-21 22:20:24 --- (In reply to comment #5)
It appears that the first problem has been fixed in 1.1.15. However, the other two remain; namely, in the virtual desktop mode it is impossible to input more than one character per window, and fixme warnings still appear during Japanese input.
File new bugs for the other issues please.
http://bugs.winehq.org/show_bug.cgi?id=11856
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2009-03-27 13:49:12 --- Closing bugs fixed in 1.1.18.