Skip to content

layer: don't fail bypass under a 1x1 toplevel#2248

Merged
matte-schwartz merged 1 commit into
ValveSoftware:masterfrom
matte-schwartz:blackflag-blackscreen
Jul 10, 2026
Merged

layer: don't fail bypass under a 1x1 toplevel#2248
matte-schwartz merged 1 commit into
ValveSoftware:masterfrom
matte-schwartz:blackflag-blackscreen

Conversation

@matte-schwartz

Copy link
Copy Markdown
Collaborator

Wine uses a 1x1 X window to represent an empty window rect, and Assassin's Creed Black Flag Resynced passes through this state when switching from SDR to HDR. The toplevel goes 1x1 while the client window keeps its full size, and the game re-queries surface formats in a loop until an HDR10 format appears, so failing bypass here hides the HDR formats and leaves it hanging on a black screen.

A 1x1 toplevel is not a real size to validate the client window against, so ignore it.

Wine uses a 1x1 X window to represent an empty window rect, and Assassin's
Creed Black Flag Resynced passes through this state when switching from
SDR to HDR. The toplevel goes 1x1 while the client window keeps its full
size, and the game re-queries surface formats in a loop until an HDR10
format appears, so failing bypass here hides the HDR formats and leaves
it hanging on a black screen.

A 1x1 toplevel is not a real size to validate the client window against,
so ignore it.
@matte-schwartz matte-schwartz merged commit 7b340f5 into ValveSoftware:master Jul 10, 2026
1 check passed
@matte-schwartz matte-schwartz deleted the blackflag-blackscreen branch July 11, 2026 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant