wails icon indicating copy to clipboard operation
wails copied to clipboard

Enhance WindowSetAlwaysOnTop to support HWND_TOPMOST for overlaying fullscreen applications

Open pansy1110 opened this issue 8 months ago • 2 comments

Is your feature request related to a problem? Please describe.

I'm researching a live-streaming camera overlay tool that requires windows to overlay fullscreen games (e.g., League of Legends). According to the documentation, the current WindowSetAlwaysOnTop might not suffice, while Windows API SetWindowPoshttps://learn.microsoft.com/zh-cn/windows/win32/api/winuser/nf-winuser-setwindowpos) with HWND_TOPMOST could theoretically achieve true global top-most behavior. Proposing to enhance this feature or add new methods.

Describe the solution you'd like

Extend WindowSetAlwaysOnTop with a level parameter to choose between normal/global top-most

Describe alternatives you've considered

No response

Additional context

No response

pansy1110 avatar May 09 '25 14:05 pansy1110

MacOS also supports layers I believe. Did you have an API in mind. Is this something you can do?

leaanthony avatar May 12 '25 22:05 leaanthony

MacOS also supports layers I believe. Did you have an API in mind. Is this something you can do?

Sorry, I'm not very familiar with the window topmost API on macOS, and I don't have a macOS environment for testing, so I can't ensure that the implemented feature would work properly on macOS.

pansy1110 avatar May 13 '25 00:05 pansy1110