Skip to content

Add API for getting current IClydeMonitor#6615

Open
metalgearsloth wants to merge 1 commit into
space-wizards:masterfrom
metalgearsloth:2026-06-04-get-window
Open

Add API for getting current IClydeMonitor#6615
metalgearsloth wants to merge 1 commit into
space-wizards:masterfrom
metalgearsloth:2026-06-04-get-window

Conversation

@metalgearsloth

Copy link
Copy Markdown
Contributor

There's a way to set it but no way to get it.

Would've added a test but don't think there's a clean way to do it for runners and they use the headless stuff so.

Need this on content just for a silly options button to set display cap to refresh rate but can be useful for other stuff in future.

There's a way to set it but no way to get it.
/// <summary>
/// Gets the monitor the main game window is currently on.
/// </summary>
IClydeMonitor? GetWindowMonitor();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why is this API only available for the main window rather than all windows?

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.

3 participants