https://bugs.winehq.org/show_bug.cgi?id=51176
Bug ID: 51176 Summary: Enter button changes window modes after Alt+Tab (INSIDE, NFS (2015)) Product: Wine Version: 6.9 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: andrey.goosev@gmail.com Distribution: ---
1. Enable a Virtual Desktop (for example setting to 1280x720 should be enough) 2. Run a game 3. Switch to another window with Alt+Tab 4. Switch back to a game window 5. Now window modes (windowed/fullscreen) will change by pressing Enter
https://bugs.winehq.org/show_bug.cgi?id=51176
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE CC| |o.dierick@piezo-forte.be Status|NEW |RESOLVED
--- Comment #1 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
I think I've experienced this issue since forever.
I remember reading somewhere an explanation that wine cannot update the key state once alt-tab is pressed because the WM catches the key release and doesn't inform Wine. Wine still thinks that alt is pressed. when returning to the wine window, wine still thinks the alt key is pressed and every key stroke is alt'ed. In the case of pressing 'enter' this make it do alt+enter (usually bound to windowed/fullscreen switch). Pressing other keys give other undesired results depending on alt+key bindings in the application. Pressing and releasing alt while the wine window is active resets the key state and fixes the issue temporarily until the user alt-tab out and in again.
Unfortunately, I can't remember where I got that and don't have a reference at hand.
This issue has been reported as bug 35976.
It is possible that the issue depends on the Window Manager/Desktop Environment behavior, so adding that information to the existing bug may be useful.
Regards.
*** This bug has been marked as a duplicate of bug 35976 ***
https://bugs.winehq.org/show_bug.cgi?id=51176
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing duplicate.