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

feat: window focus #172

Merged
merged 2 commits into from
Dec 14, 2024
Merged

feat: window focus #172

merged 2 commits into from
Dec 14, 2024

Conversation

louis030195
Copy link
Contributor

@louis030195 louis030195 commented Dec 13, 2024

disclaimer: did only test on macos so need some testers

cargo run --example window

#171

need to update code for windows/linux

basically i check if the mouse is in the window

@louis030195
Copy link
Contributor Author

seems is GetForegroundWindow ok

Retrieves a handle to the foreground window (the window with which the user is currently working). The system assigns a slightly higher priority to the thread that creates the foreground window than it does to other threads.

@nashaofu nashaofu merged commit 965bc99 into nashaofu:master Dec 14, 2024
@nashaofu
Copy link
Owner

I accidentally merged the code, I opened a PR again #173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants