Skip to content

SDL_GetDisplayUsableBounds returns initial bounds #11407

@lailoken

Description

@lailoken

I'm currently on Ubuntu 24.04 LTS and have an application that is causing an assert due to an incorrect work area.

I am on 2.30.0 (I think this is the default on the OS?)

I tried to look through the logs / issues and did not see anything similar.

Issue:
I am calling SDL_GetDisplayUsableBounds and it returns 0 (success), yet the values are all 0,0,0,0 (SDL_GetError also returns no message)

I have three displays, and the issue seems to occur when I have a reserved area (task bar) on the right- hand side of the preceding display. (left-hand sides are fine)

On my main / middle display I also have a menu bar at the top, but then the side panel as well. And moving the side panel from the left (where SDL_GetDisplayUsableBounds returns the correct bounds for all displays) to the right, seems to break the following display's metrics.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions