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
SetFullScreen(false) give error #2588
Comments
The error is because of not resizing the window first or the window size only have one content (size is approx 0*0)initially and when we exit there is no such window exist so this case should be handled if fyne give me authority to change i can fix this |
Thanks for the info. The basic size should not be 0x0 - the button has a minimum size that is much larger because it needs to include "Full Screen" text and border. If you can find out why that tiny size is happening and/or resolve it that would be amazing thanks. |
I do not know wheter I can....., (I m in linux amd64)
in
or add to "
|
Hmm, interesting idea. But I think |
Caused if the window has never had a resize event before. Fixes #2588
Caused if the window has never had a resize event before. Fixes #2588
Fixed on |
When I am exiting from full screen I got the exit status 2 The error is given below in Bold
**panic: InvalidValue: Invalid window size 0x0
goroutine 1 [running, locked to thread]:
github.com/go-gl/glfw/v3.3/glfw.acceptError({0x0, 0x0, 0x3c})
C:/Users/Ankit Sharma/go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20210410170116-ea3d685f79fb/error.go:174 +0x186
github.com/go-gl/glfw/v3.3/glfw.panicError(...)
C:/Users/Ankit Sharma/go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20210410170116-ea3d685f79fb/error.go:185
github.com/go-gl/glfw/v3.3/glfw.(*Window).SetMonitor(0xc0000b2000, 0xc000032088, 0xc000032148, 0x1, 0x0, 0x7ff752bbd54b, 0x0)
C:/Users/Ankit Sharma/go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20210410170116-ea3d685f79fb/window.go:692 +0x35
fyne.io/fyne/v2/internal/driver/glfw.(*window).SetFullScreen.func1()
C:/Users/Ankit Sharma/go/pkg/mod/fyne.io/fyne/v2@v2.1.1/internal/driver/glfw/window.go:136 +0x9b
fyne.io/fyne/v2/internal/driver/glfw.(gLDriver).runGL(0xc00007e910)
C:/Users/Ankit Sharma/go/pkg/mod/fyne.io/fyne/v2@v2.1.1/internal/driver/glfw/loop.go:104 +0x197
C:/Users/Ankit Sharma/go/pkg/mod/fyne.io/fyne/v2@v2.1.1/internal/driver/glfw/driver.go:83 +0x30
fyne.io/fyne/v2/internal/driver/glfw.(window).ShowAndRun(0xc0000b2000)
C:/Users/Ankit Sharma/go/pkg/mod/fyne.io/fyne/v2@v2.1.1/internal/driver/glfw/window.go:462 +0x2f
main.main()
C:/Users/Ankit Sharma/Desktop/golang crazy/project/os.go:33 +0x157
exit status 2
To Reproduce:
Steps to reproduce the behaviour:
Example code:
Device (please complete the following information):
Windows 10
go version go1.17.1 windows/amd64
fyne cli version: v2.1.1
The text was updated successfully, but these errors were encountered: