Skip to content

Add opt-in rounding for Steam windows and game Dock icons - #319

Open
vecbool wants to merge 2 commits into
NotProtonNot:mainfrom
vecbool:feat/steam-rounding
Open

vecbool wants to merge 2 commits into
NotProtonNot:mainfrom
vecbool:feat/steam-rounding

Conversation

@vecbool

@vecbool vecbool commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Refs #233.

Add Round Steam windows under Status → Steam. It is off by default. The option gives regular SDL desktop windows their native AppKit corners after Steam restarts.

The second commit adds an optional plugin that keeps the rounded launcher artwork with macOS icon margins when Wine updates the game's Dock icon. Game session grouping is covered by #257.

I verified a cold start through the standard Steam app on Apple silicon with Steam build 1794536281, and ran make dylib and make rounded-game-icon-check. The Dock checks passed on arm64 and x86_64. The Swift suite passed 589 of 590 tests. The remaining test expects stock CrossOver Preview ntdll modules and fails the same way on main with my locally patched installation.

@NotProtonNot

Copy link
Copy Markdown
Owner

I despise how Steam is not rounded. I'll review this for merging today.

@NotProtonNot

Copy link
Copy Markdown
Owner

Day passed, I got busy, but I'm coming back to this today because I hate the UI quirk so much.

@NotProtonNot

Copy link
Copy Markdown
Owner

The rounded artwork issue was a dumb NotProton issue, I am fixing it now.

@NotProtonNot

Copy link
Copy Markdown
Owner

Got your icon fix in on main/plugin-pt3, reviewing the rest.

@NotProtonNot

Copy link
Copy Markdown
Owner

As much as I want to merge this, it's quite complex and fragile. The PR kinda subverts Steam's internal logic and could easily break. It fights SDL quite a bit and causes weird flickering. Is there a better way to do this?

@vecbool

vecbool commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for testing this! The window has looked stable on my setup so far. I’d like to revisit this and see if there’s a simpler way to round the corners while letting SDL manage the window style. It may be a while before I have an update. If you remember what triggered the flicker, that would help me reproduce it.

@vecbool

vecbool commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

One option is to keep SDL’s borderless window and use AppKit to clip the content layer to a rounded rectangle, leaving the corners transparent.

@vecbool
vecbool force-pushed the feat/steam-rounding branch from 7005ca1 to e0ad59d Compare November 25, 2026 00:18
@vecbool

vecbool commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

This update resolves the conflict with SDL’s window styling by rounding the content layer. I’m still working on making the corner shape match native macOS windows.
image

@vecbool

vecbool commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

The revised patch clips the content layer and leaves window styling to SDL. It uses a 17 pt radius on macOS 26 and later, which I tested on macOS 27.2.1. Could you take another look when you have a chance?

@NotProtonNot

Copy link
Copy Markdown
Owner

Will take another look at it tonight. Currently attempting to reproduce something. 😄

@ephoton

ephoton commented Nov 26, 2026

Copy link
Copy Markdown

Is this possible to release as a plugin and not in NotProton core? I would prefer if NotProton only did compatibility layer stuff following Unix philosphy

@NotProtonNot

NotProtonNot commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Is this possible to release as a plugin and not in NotProton core? I would prefer if NotProton only did compatibility layer stuff following Unix philosphy

That's part of why it isn't merged (yet). If it were to be merged, it would be entirely inert unless a user enables it. I don't want to introduce complexity and failure classes unless there are gains that relate to compatibility. Even to be introduced as an inert thing that is not loaded unless user enables the functionality, it would need to be minimal, clean, reasonably safe, engineered to make breakage with a client update as unlikely as possible (so I am not stuck fixing it semi-constantly)...you get the idea.

Currently, there is no way to do this as a plugin. Plugins interact with games themselves, this interacts with Steam.

But I agree with you. I would like to keep the scope reasonable and the changes as light as possible. The majority of the PRs that were closed without merging were closed on account of the PR expanding the scope in a way that adds complexity and doesn't relate to the core project goals - I don't think everyone should bear costs in exchange for improvements with the DualSense, for example. Especially when the same DualSense stuff is broken under actual Proton. Better to get DualSense stuff to the same level of functionality that it has under CrossOver running Windows Steam and leave the rest to a plugin.

Are there any areas where I've deviated from our shared goal in a way that bothers you? I don't mean it as an accusation. I'm very interested in feedback in this area.

I can count two that I can think of immediately. Both workarounds for actual issues in Steam. One for the 'Steam steals focus' issue that has been around forever, another for an annoying issue Valve introduced into the Mac client recently - "briefly after launching Steam, the top of the UI (where the Store/Library/Community options are) will 'flash' between all the drop down options under those tabs.". Those are small fixes with minimal complexity. The first one is a requisite for the forthcoming native fullscreen mode plugin (without it, there is no way to open the macOS Game Overlay and keep it open) and the other one looks like such a sloppy bug that I suspected that people would believe the issue to be a NotProton issue and report it to me and not Valve.

Anyway, interested in feedback.

@ephoton

ephoton commented Nov 27, 2026

Copy link
Copy Markdown

I can count two that I can think of immediately. Both workarounds for actual issues in Steam. One for the 'Steam steals focus' issue that has been around forever, another for an annoying issue Valve introduced into the Mac client recently - "briefly after launching Steam, the top of the UI (where the Store/Library/Community options are) will 'flash' between all the drop down options under those tabs.". Those are small fixes with minimal complexity. The first one is a requisite for the forthcoming native fullscreen mode plugin (without it, there is no way to open the macOS Game Overlay and keep it open) and the other one looks like such a sloppy bug that I suspected that people would believe the issue to be a NotProton issue and report it to me and not Valve.

No, your take is very reasonable as well; this is your project and I do not want to impose my preferences as project direction. What follows is a horrifically long sentence.

However, in my opinion, since NotProton already offers native code injection into Steam, and if the plugin system can be extended to support both game and client plugins, and to keep code separation for easier maintenance of both the core and smaller interface surface of plugins/their contents, perhaps the additional fixes outside pure compatibility-layer could be made into a client plugin that ships with NotProton (maybe even as an always-on plugin with no way to disable).

Maybe DualSense support could also be added as a plugin.

@NotProtonNot

NotProtonNot commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

I can count two that I can think of immediately. Both workarounds for actual issues in Steam. One for the 'Steam steals focus' issue that has been around forever, another for an annoying issue Valve introduced into the Mac client recently - "briefly after launching Steam, the top of the UI (where the Store/Library/Community options are) will 'flash' between all the drop down options under those tabs.". Those are small fixes with minimal complexity. The first one is a requisite for the forthcoming native fullscreen mode plugin (without it, there is no way to open the macOS Game Overlay and keep it open) and the other one looks like such a sloppy bug that I suspected that people would believe the issue to be a NotProton issue and report it to me and not Valve.

No, your take is very reasonable as well; this is your project and I do not want to impose my preferences as project direction. What follows is a horrifically long sentence.

However, in my opinion, since NotProton already offers native code injection into Steam, and if the plugin system can be extended to support both game and client plugins, and to keep code separation for easier maintenance of both the core and smaller interface surface of plugins/their contents, perhaps the additional fixes outside pure compatibility-layer could be made into a client plugin that ships with NotProton (maybe even as an always-on plugin with no way to disable).

Maybe DualSense support could also be added as a plugin.

It's a community project! I take feedback from everyone!

I fully agree with you.

I know someone who is working on DualSense adaptive trigger/controller audio stuff as a plugin!

@crabique

Copy link
Copy Markdown

...
such a sloppy bug that I suspected that people would believe the issue to be a NotProton issue and report it to me and not Valve.

Can confirm, the focus stealer was so bad it even prevented the volume control dropdown from displaying and the flicker issue was very jarring, so I just assumed that's the price to pay for using a patched Steam client.

Especially since both of those issues appeared around the same time as NotProton, I did not expect the plot twist that it was Valve's crazy work 😄

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.

4 participants