https://bugs.winehq.org/show_bug.cgi?id=56258
Bug ID: 56258 Summary: [Sway] winewayland.drv: Inconsistency between XWayland and Wayland: 'Detroit Become Human' + 'Ultrawide Mod' makes the window disappear Product: Wine Version: 9.1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: grabbend@hotmail.com Distribution: ---
# Overview
This issue cannot be reproduced with XWayland in Sway.
When using the new Wayland driver with Detroit Become Human game, the game window will disappear if these 2 conditions are meet: - The game is using 'Fullscreen' mode (before proceeding to the next step). - Detroit Become Human Ultrawide injector app is launched (community.pcgamingwiki.com/files/file/1721-detroit-become-human-ultrawide-multimonitor-mod/).
# Stacktrace
There are no direct logs of what's going wrong.
However, this exact error message shows up: * At step 4 in 'Reproduction' section (when the game window disappears). * At step 6 in 'Workaround' section (after successful injection).
02c0:err:sync:RtlpWaitForCriticalSection section 0000000004046428 (null) wait timed out in thread 02c0, blocked by 02a8, retrying (60 sec)
When inspecting active windows in Sway, it never goes away which means the game's process never crashes - it's just invisible:
$ swaymsg -t get_tree #129: workspace "1" #128: con "(null)" (xdg_shell, pid: 17939)
# Setup *) [WINE] Most straightforward approach is to use 'Bottles' app but this can also be reproduced with 'Lutris' and 'Steam'. *) [WINE] Use WINE 9.1 runner. *) [WINE] Make sure Wayland driver is enabled in Registry & DISPLAY= environment variable is empty.
# Reproduction 1) [Sway Workspace 1] Launch 'Detroit Become Human' game. 2) [Game] Make sure the game is using 'Fullscreen' mode in the options menu. 3) [Sway Workspace 2] Launch Detroit 'Become Human Ultrawide 0.9.9' external app (injector). 4) [Sway] Switch from Sway Workspace 2 to Sway Workplace 1 (where the game window is). *) [Game] Game audio can still be heard but you can't see the game window (it's invisible).
# Workaround 1) [Sway Workspace 1] Launch 'Detroit Become Human' game. 2) [Game] Make sure the game is using 'Borderless Window' or 'Windowed' mode in the options menu. 3) [Sway Workspace 2] Launch Detroit 'Become Human Ultrawide 0.9.9' external app (injector). 4) [Sway] Switch from Sway Workspace 2 to Sway Workplace 1 (where the game window is). 5) [Game] Press 'F9' to activate the injector, then wait for UI elements to resize. 6) [Game] Change the video mode to 'Fullscreen'. *) [Game] The game populates the entire screen without blackbars and works as intended without crashing.