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

Wayland Support #54

Open
fictitiousexistence opened this issue Feb 28, 2023 · 10 comments
Open

Wayland Support #54

fictitiousexistence opened this issue Feb 28, 2023 · 10 comments
Labels
enhancement New feature or request

Comments

@fictitiousexistence
Copy link

Hello. Just found your project and it looks nice!

Do you have any plans on supporting Wayland?

Thanks.

@dweymouth
Copy link
Owner

dweymouth commented Feb 28, 2023

Hi, glad you've found the project to be nice so far! And thanks for opening the issue. The UI toolkit this project it built on (Fyne) is working on Wayland support, and building for Wayland is done by adding -tags wayland to the go build command. Though there are currently no window borders in the Wayland builds and probably other bugs and kinks to work out. Once Fyne supports Wayland then this project will as well! I'll leave this issue open until then

@oktayacikalin
Copy link

How is Fyne doing so far?

@dweymouth
Copy link
Owner

You can follow Fyne's progress here: fyne-io/fyne#1851. Currently they are aiming for the next non-patch release to have official Wayland support, or at least a much improved Wayland experience such that Supersonic may be able to start offering native Wayland builds.

@andydotxyz
Copy link

It would be good to test against fyne develop version with the wayland tag - it all seems to be working for me :)

@dweymouth
Copy link
Owner

Unfortunately users testing this out are still seeing multiple issues and increased instability with -tags wayland compared to X11 builds

@oktayacikalin
Copy link

Happy new year! Can you provide some links to bugs still blocking this project enabling wayland support via flatpak?

@dweymouth
Copy link
Owner

This bug - fyne-io/fyne#4964 - which I am able to work around in X11, reproduces frequently with the Wayland build in my testing (Ubuntu 22.04.5 LTS), and the workaround isn't able to prevent it. Also, resizing the Wayland window is extremely laggy for me whereas the X11 build resizes normally with no perceptible delay. Lastly (of the things I'm aware of), the regular window borders don't draw, and it has a very bare-bones pure black window border on the top edge only (though maybe this is an Ubuntu issue?).

@andydotxyz
Copy link

Lastly (of the things I'm aware of), the regular window borders don't draw, and it has a very bare-bones pure black window border on the top edge only (though maybe this is an Ubuntu issue?).

This should be resolved but you will need libdecor installed to get that benefit.

@dweymouth
Copy link
Owner

@oktayacikalin It's possible that the above issues will be solved in the upcoming Fyne 2.6, especially the issue # 4964, which is suspected to be a race condition that might be resolved with Fyne 2.6's new threading model. In the meantime, of course you can compile a Wayland build yourself, but while the X11 build continues to work better on a Wayland system than the Wayland build in my testing, I won't be "officializing" Wayland support or releasing pre-compiled Wayland builds alongside the X11 ones.

@dweymouth
Copy link
Owner

I also just filed fyne-io/fyne#5357 since it looks like there wasn't an open issue tracking the laggy resizing of Wayland apps in Fyne.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants