feat: add Window::is_always_on_top method - #981
Conversation
… is always on top - Implemented `is_always_on_top` in `UnownedWindow` for macOS. - Exposed `is_always_on_top` through the cross-platform `Window` API. - Noted that this feature is unsupported on iOS and Android platforms. This change allows developers to query whether a given window is set to always stay on top of other windows, enhancing the platform's window management capabilities.
…n top This commit introduces a new public method `is_always_on_top` in the `Window` struct. The method checks whether the `ALWAYS_ON_TOP` flag is present in the `window_flags` of the current window state, and returns a boolean value accordingly.
Package Changes Through e36d400There are 1 changes which include tao with patch Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
|
for linux, you can check https://docs.rs/gdk/0.18.0/gdk/struct.Window.html#method.state and check if it has thishttps://docs.rs/gdk/0.18.0/gdk/struct.WindowState.html#associatedconstant.ABOVE flag |
amrbashir
left a comment
There was a problem hiding this comment.
Other than failing CI because of missing methods for Android and iOS backends, this LGTM.
Could you also add a change file in .changes directory?
|
Why use placeholder functions instead of using compile-time conditions to control platform-specific interfaces? |
This was something inherited from |
|
Thank you |
Window::is_always_on_top method
I couldn't find a way to get the "keep above" property through GTK, so the
is_always_on_topmethod is not implemented for Linux.Relate: tauri-apps/tauri#11078