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

added ability to focus a window through API #59

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

duysqubix
Copy link
Contributor

Related to #51, glfw adds this support.

Focus a window now by

win := pixelgl.NewWindow(...)

win.Focus()

fmt.Printf("%v\n", win.Focused()) // True

@duysqubix duysqubix requested review from dusk125 and a team October 11, 2023 15:58
@duysqubix duysqubix linked an issue Oct 11, 2023 that may be closed by this pull request
@duysqubix duysqubix merged commit 02a34aa into gopxl:master Oct 11, 2023
@duysqubix duysqubix deleted the feature/#51/focus_window branch October 11, 2023 16:38
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.

How to focus Window
2 participants