We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SetFullScreen require sleep some time to take effect; otherwise, it won't go fullscreen and the window's position will be incorrect.
I see some code in internal/driver/glfw/window.go
if w.fullScreen { // this does not work if called before viewport.Show() go func() { time.Sleep(time.Millisecond * 100) w.SetFullScreen(true) }() }
No response
func myShow() { window.Show() time.Sleep(1 * time.Second) window.SetFullScreen(true) }
func myHide() { window.SetFullScreen(false) window.Hide() }
myShow -> myHide -> myShow
2.4.5
1.20
windows 10
The text was updated successfully, but these errors were encountered:
I cannot replicate from the code provided - please include a complete sample that demonstrates the problem.
Sorry, something went wrong.
No branches or pull requests
Checklist
Describe the bug
SetFullScreen require sleep some time to take effect; otherwise, it won't go fullscreen and the window's position will be incorrect.
How to reproduce
I see some code in internal/driver/glfw/window.go
if w.fullScreen { // this does not work if called before viewport.Show()
go func() {
time.Sleep(time.Millisecond * 100)
w.SetFullScreen(true)
}()
}
Screenshots
No response
Example code
func myShow() {
window.Show()
time.Sleep(1 * time.Second)
window.SetFullScreen(true)
}
func myHide() {
window.SetFullScreen(false)
window.Hide()
}
myShow -> myHide -> myShow
Fyne version
2.4.5
Go compiler version
1.20
Operating system and version
windows 10
Additional Information
No response
The text was updated successfully, but these errors were encountered: