Wine Staging 7.8 Released with Improved Alt+Tab Handling for Unity Games

The release of the Wine Staging 7.8 project has been published, within the framework of which extended builds of Wine are being formed, including not fully ready or risky patches that are not yet suitable for adoption into the main Wine branch. Compared to Wine, Wine Staging provides 550 additional patches.

The new release brings synchronization with the Wine 7.8 codebase. 3 patches related to the processing of key states and improvements to the get/set_key_state functions have been transferred to the main Wine. Four patches have been updated: winex11-_NET_ACTIVE_WINDOW, user32-Mouse_Message_Hwnd, user32-rawinput-mouse and api-iteration-tokens.

Added a patch that improves the handling of the Alt+Tab keyboard shortcut in games based on the Unity game engine. The problem with switching windows using Alt+Tab in games on the Unity engine has been observed since Wine 4.20 due to the fact that the OnApplicationFocus and OnApplicationPause events, which call handlers for changing focus and pausing the application, were not generated by the Unity engine after restoring focus on the window when switching by Alt+Tab. A patch that solves the problem was proposed back in November 2019 and implements sending the WM_NCPOINTERUP message in the code of the function responsible for setting the active window. Sending this message is enough for the Unity engine to launch the OnApplicationFocus and OnApplicationPause handlers.

Source: opennet.ru

Add a comment