vsariola / sointu

Fork of 4klang that can target 386, amd64 and WebAssembly. Tools run on Windows, Mac & Linux
MIT License
254 stars 17 forks source link

Always On Top #111

Open LeStahL opened 10 months ago

LeStahL commented 10 months ago

It would be nice to be able to switch Sointu to "Stay always on top" (of the DAW), esp. for the users coming from 4klang.

vsariola commented 10 months ago

I doubt it's possible in Gio, but I'll investigate more. The Options for a window are here: https://github.com/gioui/gio/blob/fc6e51deba0edec4f01a5187b809772ab03fbb10/app/window.go#L1092

Hacking Gio is entirely possible, but I think it's hard to convince Gio maintainers to implement behavior without supporting it at least a few different platforms.

Afaik Gio also doesn't have any way to access the underlying HWND pointer, even for users who think they know what they are doing.

Good ideas welcome :)