Has anyone been able to get xwidget-webkit to work under Wayland? I saw that support for pgtk was added a couple of years ago so I decided to give it a whirl. Compiled emacs 29.1 on Linux x86_64 with webkit2gtk-2.42.1 and the configure options `–with-xwidgets` and `–with-pgtk`. I tried opening a url with `xwidget-webkit-browse-url`, but emacs crashed with the error:
“ERROR **: 12:43:15.326: GDK is not able to create a GL context: The current backend does not support OpenGL.”
which is weird, because `eglinfo` does not report anything out of the ordinary.
xwidgets has always been finicky for me and there’s very little information available on the internet so I’d be interested in knowing if others have got it to work and it’s just a problem with my setup.
The reason is that webkit2gtk no longer supports offscreen rendering starting from 2.42.1. I don’t see there is a clear plan in the emacs-devel for fixing this issue. You can see the full discussion here: https://mail.gnu.org/archive/html/bug-gnu-emacs/2023-09/msg01905.html