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

gloss doesn't work on wayland/swaywm *without xwayland #54

Open
menaceinfrills opened this issue Aug 9, 2023 · 3 comments
Open

gloss doesn't work on wayland/swaywm *without xwayland #54

menaceinfrills opened this issue Aug 9, 2023 · 3 comments

Comments

@menaceinfrills
Copy link

Hello! I've recently started figuring out gloss and was working on a project in xmonad. A couple days ago I switched over to swaywm to check it out, however I got an error ( freeglut (gloss-stuff): failed to open display '' ) whenever I tried to do stack run. Going back to xmonad it runs just fine, same for xfce. Has anyone else encountered this? I'm willing to try another wayland-based de and see if this problem is swaywm-specific or wayland-broad.

@dpwiz
Copy link

dpwiz commented Aug 9, 2023

Works for me under a wayland session in Ubuntu 22.04. Maybe the freeglut library is too old or misconfigured somehow?

@menaceinfrills menaceinfrills changed the title gloss doesn't work on wayland/swaywm? gloss doesn't work on wayland/swaywm *without xwayland Aug 10, 2023
@menaceinfrills
Copy link
Author

menaceinfrills commented Aug 10, 2023

it turns out sway doesn't automatically install xwayland, with xwayland installed it runs just fine (of course it doesn't run as a floating window in a tiling wm but ive no idea where to start with that).

I don't know if making gloss run without X is in the cards right now - from what I heard different wayland compositors require different implementations; if this is true, implementing this is a lot less straightforward than it seems.

I'll leave this issue open with this message, feel free to close!

@georgefst
Copy link
Contributor

Turns out Freeglut actually had Wayland support added quite a long time ago: freeglut/freeglut#30. But it appears to have bitrotted: freeglut/freeglut#72, swaywm/wlroots#1799. I haven't even tried it since it needs to be triggered at build-time: freeglut/freeglut#141.

Anyway, XWayland works for now.

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

No branches or pull requests

3 participants