Skip to content

Add ClydeWindow API to set borderless mode#6618

Open
PowerfulBacon wants to merge 4 commits into
space-wizards:masterfrom
PowerfulBacon:Borderless-windows
Open

Add ClydeWindow API to set borderless mode#6618
PowerfulBacon wants to merge 4 commits into
space-wizards:masterfrom
PowerfulBacon:Borderless-windows

Conversation

@PowerfulBacon

Copy link
Copy Markdown

Adds support for borderless windows in the Clyde window engine. A window can be set to borderless by calling the SetWindowTitleBarVisible.

A decision needs to be made as to whether I should rename this method to SetWindowBorderMode or something similar.

This is required for fancy TGUI window support in OpenDream:

image

Comment thread Robust.Client/Graphics/Clyde/Windowing/Sdl3.Window.cs Outdated
@ike709

ike709 commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Incredibly based PR.

@PowerfulBacon PowerfulBacon changed the title Borderless windows Add ClydeWindow API to set borderless mode Jun 9, 2026
Comment thread Robust.Client/Graphics/IClydeWindow.cs Outdated
bool IsFocused { get; }
bool IsMinimized { get; }
bool IsVisible { get; set; }
bool IsTitleBarVisible { get; set; }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This probably shouldn't be named this given it changes more than the title bar?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thanks for the review, I'll update the names of everything to be centered around the 'border' rather than the 'title bar' since thats how SDL names it.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I have updated it to be IsBordered rather than IsTitleBarVisible, as that's the naming convention that SDL uses

@PowerfulBacon

Copy link
Copy Markdown
Author

We had a discussion on the SS14 discord, since wayland doesn't support setting the window position then we probably want to make it so that wayland windows cannot be made borderless. The question is whether or not that should be added in this PR, or in a PR that adds the ability to set window positions, since this PR's utility is a lot lower without the ability to set position at runtime.

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