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

Window periodically misdraws into a smaller area on startup #4964

Open
2 tasks done
dweymouth opened this issue Jun 23, 2024 · 1 comment
Open
2 tasks done

Window periodically misdraws into a smaller area on startup #4964

dweymouth opened this issue Jun 23, 2024 · 1 comment
Labels
bug Something isn't working OS:Linux Tickets affecting only Linux

Comments

@dweymouth
Copy link
Contributor

dweymouth commented Jun 23, 2024

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

Seems to only happen on Linux, and on Ubuntu 24.04 it happens up to 50% of the time, much more often than 22.04, according to Supersonic user reports. When this happens the window canvas also isn't responsive to mouse events at all.

I'm really tempted to mark this as a blocker since it is a huge negative to the UX of Fyne apps on Linux, at least on whatever distros are affected. Though manually resizing the window does fix it when it gets in this state.

How to reproduce

Launch a Fyne app on Ubuntu 24.04 until it shows up misdrawn

Screenshots

Screenshot from a Supersonic user:

image

Example code

n/a

Fyne version

develop

Go compiler version

n/a

Operating system and version

Linux (especially Ubuntu 24.04)

Additional Information

No response

@dweymouth dweymouth added unverified A bug that has been reported but not verified bug Something isn't working OS:Linux Tickets affecting only Linux and removed unverified A bug that has been reported but not verified labels Jun 23, 2024
@dweymouth
Copy link
Contributor Author

I'll just share my incredibly hacky workaround here (which replaced my previous, ineffective attempt at a workaround) in case anyone else is affected: dweymouth/supersonic@2736fe9

I send a resize event through X11 shortly after the window is shown, so that if it ends up in the misdrawn state it will be forced out of it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working OS:Linux Tickets affecting only Linux
Projects
None yet
Development

No branches or pull requests

1 participant