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

SetFullScreen(true) before ShowAndRun fails #2446

Closed
cmitsakis opened this issue Sep 8, 2021 · 2 comments
Closed

SetFullScreen(true) before ShowAndRun fails #2446

cmitsakis opened this issue Sep 8, 2021 · 2 comments
Labels
blocker Items that would block a forthcoming release bug Something isn't working

Comments

@cmitsakis
Copy link
Contributor

Describe the bug:

Calling w.SetFullScreen(true) before w.ShowAndRun() doesn't work. Program terminates with the the following error:

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  12 (X_ConfigureWindow)
  Value in failed request:  0x0
  Serial number of failed request:  243
  Current serial number in output stream:  249

To Reproduce:

I can reproduce it on i3 and Xfce by running the following code:

package main

import (
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/widget"
)

func main() {
	a := app.New()
	w := a.NewWindow("test")
	w.SetContent(widget.NewLabel("Hello World"))
	w.SetFullScreen(true)
	w.ShowAndRun()
}

Device (please complete the following information):

  • OS: Linux
  • Version: 5.13.10
  • Go version: 1.17
  • Fyne version: 2.0.4 and 08dae6d
@cmitsakis cmitsakis added the unverified A bug that has been reported but not verified label Sep 8, 2021
@koodimetsa
Copy link

This also happens with Raspberry Pi's latest OS.

@andydotxyz andydotxyz added blocker Items that would block a forthcoming release bug Something isn't working and removed unverified A bug that has been reported but not verified labels Sep 8, 2021
@andydotxyz andydotxyz added this to the Aberlour (2.1) milestone Sep 8, 2021
andydotxyz added a commit that referenced this issue Sep 8, 2021
@andydotxyz
Copy link
Member

Fixed on develop ready for testing and v2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker Items that would block a forthcoming release bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants