-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
fix: get is_focused
value dynamically
#191
fix: get is_focused
value dynamically
#191
Conversation
first execution is on this branch. second execution is on master version @nashaofu @louis030195 Xcap.Zsh.Feb.12.2025.mp4 |
@@ -76,7 +76,7 @@ impl Window { | |||
} | |||
/// The window is focused. | |||
pub fn is_focused(&self) -> bool { | |||
self.impl_window.is_focused | |||
self.impl_window.is_focused() |
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.
If we don't get the value from a function, we get the focused app when the Window
has been built. now we get if the value is focused at the time of checking instead of a static value
is_focused
value dynamically
nice |
closes #190
activeApplication
to get focused app