Repository navigation
Conversation
…only an exact match
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bar stays on top of a fullscreen game.
Reported with: Minecraft, window class
SDL_app, style0x96CF0000(WS_CAPTIONset),IsZoomedfalse, rect0,0 - 1921,1080on a0,0 - 1920,1080monitor.Cause:
covers_monitortreats any window with a caption style as a framed window and required its rect to exactly equal the monitor. SDL sizes the game one pixel past the monitor (1921 vs 1920), so the equality check fails and the game is never seen as fullscreen.Fix: only a framed maximized window (
caption && zoomed) is excluded — that is the #88 case, which overhangs the monitor by its border. Any other window that covers the monitor is fullscreen, including a borderless game that keeps its caption style. This keeps #88 (a maximized editor/browser still shows the bar) while counting Minecraft, Dota 2 and friends.Added the Minecraft rect to
borderless_games_count_as_fullscreen;cargo test -p topbarpasses (19 tests).