Skip to content

replace freeglut with glfw+client side decorations - #89

Open
Safari77 wants to merge 1 commit into
ArtifexSoftware:masterfrom
Safari77:glfw
Open

Safari77 wants to merge 1 commit into
ArtifexSoftware:masterfrom
Safari77:glfw

Conversation

@Safari77

@Safari77 Safari77 commented Apr 13, 2026 •

Copy link
Copy Markdown

As many distros are dropping X11 support, I added glfw support which works with Wayland.
freeglut's Wayland backend is quite old and unmaintained (I would get error failed to discover all needed compositor interfaces).

libdecor is disabled:

glfwInitHint(GLFW_WAYLAND_LIBDECOR, GLFW_WAYLAND_DISABLE_LIBDECOR);

because libdecor relies on GTK and its modern sandboxed image loader (glycin) to draw system-themed window icons on Fedora 43. But since MuPDF uses its own event loop instead of the native GLib event loop, glycin permanently deadlocks the main thread while trying to load the "Close" button SVG.

Edit: copy-paste support is also implemented in ce7ebed .

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

Successfully merging this pull request may close these issues.

1 participant