Skip to content

app: enable creation of TopMost windows on Mac#163

Open
tombanksme wants to merge 1 commit intogioui:mainfrom
tombanksme:tombanksme-floating-windows
Open

app: enable creation of TopMost windows on Mac#163
tombanksme wants to merge 1 commit intogioui:mainfrom
tombanksme:tombanksme-floating-windows

Conversation

@tombanksme
Copy link

@tombanksme tombanksme commented Feb 10, 2026

Adds an app.TopMost option to make a window floating.

TopMost windows are rendered above all other non-top-most windows.

This only works on MacOS. I attempted Windows support using the TopMost config but that doesn't appear to have the same effect on Windows 11.

Apple Documentation

An example application

@tombanksme tombanksme marked this pull request as ready for review February 10, 2026 07:44
@tombanksme tombanksme changed the title app: enable creation of floating windows on Mac app: enable creation of TopMost windows on Mac Feb 10, 2026
Copy link
Contributor

@eliasnaur eliasnaur left a comment

Choose a reason for hiding this comment

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

Overall, looks good. Please squash the commits into 1 commit.

@whereswaldon do you have any comments before merging this user-facing feature?

@tombanksme tombanksme force-pushed the tombanksme-floating-windows branch from 0aae27e to 20ee8b9 Compare February 10, 2026 11:39
@tombanksme
Copy link
Author

Thanks 🥳

I've squashed those commits

@tombanksme tombanksme force-pushed the tombanksme-floating-windows branch from 20ee8b9 to 7784cd8 Compare February 13, 2026 08:50
Floating windows are rendered above all other non-floating windows.

Apple Documentation: https://developer.apple.com/documentation/appkit/nswindow/level-swift.struct

Signed-off-by: Thomas Banks <thomas@tombanks.me>
@tombanksme tombanksme force-pushed the tombanksme-floating-windows branch from 7784cd8 to f49a113 Compare February 13, 2026 08:53
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.

2 participants