https://bugs.winehq.org/show_bug.cgi?id=57144
Bug ID: 57144 Summary: X11: Keyboard is not working in some games in virtual desktop Product: Wine Version: 9.15 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv Assignee: wine-bugs@winehq.org Reporter: lojorix20@yandex.ru Distribution: ---
Games, such as Counter-Strike: Source and Out of Action UE4 demo do not detect any keys pressed when using wine in virtual desktop mode without other window manager. I tried using registry key UseTakeFocus=N from https://bugs.winehq.org/show_bug.cgi?id=48121, but it didn't help in these games. After debugging Counter-Strike: Source v34 with WINEDEBUG=trace+event I didn't find anything different, compared to other games, and also there was no FocusIn or FocusOut events. But I noticed, that if I minimize the running game and change focus to some other program (taskmgr.exe) and then return back to the game, keyboard starts working. I did the same test but with Xfce4 wm without virtual desktop, and the problem is not present there. Starting game in windowed mode does not help aswell.
https://bugs.winehq.org/show_bug.cgi?id=57144
--- Comment #1 from olegos2 lojorix20@yandex.ru --- Might be related to https://bugs.winehq.org/show_bug.cgi?id=32445
https://bugs.winehq.org/show_bug.cgi?id=57144
--- Comment #2 from Ken Sharp imwellcushtymelike@gmail.com --- Please attach the full console output.
https://bugs.winehq.org/show_bug.cgi?id=57144
--- Comment #3 from olegos2 lojorix20@yandex.ru --- Created attachment 77050 --> https://bugs.winehq.org/attachment.cgi?id=77050 Wine log in virtual desktop
https://bugs.winehq.org/show_bug.cgi?id=57144
--- Comment #4 from olegos2 lojorix20@yandex.ru --- Created attachment 77051 --> https://bugs.winehq.org/attachment.cgi?id=77051 Wine log with xfce window manager
https://bugs.winehq.org/show_bug.cgi?id=57144
--- Comment #5 from olegos2 lojorix20@yandex.ru --- Created attachment 77052 --> https://bugs.winehq.org/attachment.cgi?id=77052 X11 event trace in virtual desktop
https://bugs.winehq.org/show_bug.cgi?id=57144
--- Comment #6 from olegos2 lojorix20@yandex.ru --- Created attachment 77053 --> https://bugs.winehq.org/attachment.cgi?id=77053 X11 event trace with xfce window manager
https://bugs.winehq.org/show_bug.cgi?id=57144
--- Comment #7 from olegos2 lojorix20@yandex.ru --- I have attached logs, first 2 are without WINEDEBUG, other 2 are with WINEDEBUG=-all,hl2.exe:trace+event. There's a few focus related x11 events that do not happen in virtual desktop. Tested on wine-9.15 vanilla. Seems like minimizing the game in virtual desktop mode also doesn't help this time.
But then I changed game to windowed mode. I switched focus to cmd.exe and back to the game, keyboard immediately started working. Also after going back to fullscreen mode keyboard works now.
https://bugs.winehq.org/show_bug.cgi?id=57144
--- Comment #8 from olegos2 lojorix20@yandex.ru --- Now I also noticed that I have to click on cmd.exe window, and then switch back to the game to make keyboard work. It doesn't work if I switch using taskbar
https://bugs.winehq.org/show_bug.cgi?id=57144
--- Comment #9 from olegos2 lojorix20@yandex.ru --- However, the game does receive focus in virtual desktop mode in first place (caption background is active), but keyboard doesn't work until I switch to other window and then click on the game window again (switching from taskbar doesn't work either)
https://bugs.winehq.org/show_bug.cgi?id=57144
--- Comment #10 from olegos2 lojorix20@yandex.ru --- I just found fix for this. I forgot to enable virtual desktop mode in winecfg and used it by running explorer with /desktop argument instead. But is this expected behavior?
https://bugs.winehq.org/show_bug.cgi?id=57144
olegos2 lojorix20@yandex.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Hardware|x86-64 |Other OS|Linux |other Severity|normal |minor Version|9.15 |unspecified Resolution|--- |INVALID Component|winex11.drv |-unknown
--- Comment #11 from olegos2 lojorix20@yandex.ru --- Invalid