On Wed, Aug 30, 2023 at 04:22:04PM +0000, Alberto Garcia wrote: > I'm having problems passing the autopkgtests locally with Wayland, > but already with WebKitGTK 2.40.x ...
I noticed that surf assumes that it's running under an X11 display in places like this: https://sources.debian.org/src/surf/2.1%2Bgit20221016-4/surf.c/#L1403 It doesn't work for me at all in a Wayland environment, even if Xwayland is available. I think that this is orthogonal to this GL problem we're talking about, but surf should force the GDK backend to X11 because that's the only one that it supports. gdk_set_allowed_backends() before gtk_init() should be enough: gdk_set_allowed_backends("x11"); gtk_init(NULL, NULL); https://sources.debian.org/src/surf/2.1%2Bgit20221016-4/surf.c/#L350 Or the GDK_BACKEND=x11 variable for a quick test. Berto