Skip to content
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

Android: Window::is_visible() always return true #7906

Open
wuwbobo2021 opened this issue Mar 21, 2025 · 1 comment
Open

Android: Window::is_visible() always return true #7906

wuwbobo2021 opened this issue Mar 21, 2025 · 1 comment
Labels
a:platform-android Android platform integration (mO,bS) bug Something isn't working priority:low Lowest priority. The issue is kept open for tracking purpose, but noone is actively working on this

Comments

@wuwbobo2021
Copy link
Contributor

wuwbobo2021 commented Mar 21, 2025

Bug Description

Window::is_visible() returns true even if the application is running at background.

Expected behavior: when an background thread updates the weak reference of the main window and check for main_window.window().is_visible(), it would be better to get a false value.

Environment Details

  • Slint Version: 1.10.0
  • Platform/OS: Android
  • Programming Language: Rust
  • Backend/Renderer: android-activity
@wuwbobo2021 wuwbobo2021 added bug Something isn't working need triaging Issue that the owner of the area still need to triage labels Mar 21, 2025
@ogoffart ogoffart added priority:low Lowest priority. The issue is kept open for tracking purpose, but noone is actively working on this a:platform-android Android platform integration (mO,bS) and removed need triaging Issue that the owner of the area still need to triage labels Mar 21, 2025
@ogoffart
Copy link
Member

Despite what the docs says, Window::is_visible() currently basically tells us whether show() has been called on the window.
But it does indeed perhaps make sense to return false if it is in the background.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:platform-android Android platform integration (mO,bS) bug Something isn't working priority:low Lowest priority. The issue is kept open for tracking purpose, but noone is actively working on this
Projects
None yet
Development

No branches or pull requests

2 participants