-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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_top
method is not implemented for Linux.Relate: tauri-apps/tauri#11078