I'm trying to get the MuPDF viewer working on Sway (Wayland), are there any plans to support wayland in the near future and/or are you open to community contributions regarding this issue? I would assume the quickest way to solve this would be to use `mupdf-gl` and patch it to use wayland versions of freeglut or glew to create the window in a wayland context. I haven't delved deeper into the mupdf codebase but maybe there's a simpler solution?
Retargeting mupdf-gl to use GLEW is probably the best way to provide good Wayland support in the future. The X compatibility of Wayland should be good enough for now.