Skip to content

disp/gl: Toggling fullscreen unexpectedly moves to another monitor #503

Description

@mpiatka

If no monitor is explicitly specified as a parameter, the expected behavior is that toggling fullscreen uses the same monitor the window was already on (other sw displays behave this way).

GLFW instead picks a "primary" monitor and always uses that one. This is even worse on Wayland, since there is no concept of primary/secondary monitors, so the monitor picked is unpredictable.

Unfortunately, there currently doesn't seem to be a way to fix this as GLFW doesn't provide any way to query which monitor to use (glfwGetWindowMonitor works only when the window is already fullscreen).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions