Skip to content

Conversation

@Susko3
Copy link
Member

@Susko3 Susko3 commented Nov 14, 2025

Alternative to #6667 for use in ppy/osu#35691.

Exposes the window border (using SDL_GetWindowBordersSize, via IWindow) and the usable bounds of displays (using SDL_GetDisplayUsableBounds, via Display).

Also includes a test, shown below.

On Windows:

  • the usable bounds of displays don't include the taskbars (at bottom)
  • the window border includes the title bar (above) and the invisible resize area (all around)
slika

cc @Kawaritai in case you missed this

Copy link
Contributor

@smoogipoo smoogipoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ok

@smoogipoo smoogipoo merged commit 4bbc05d into ppy:master Nov 17, 2025
12 of 14 checks passed
@Susko3 Susko3 deleted the window-border-usable-size branch November 17, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants