On Tue, Jun 14, 2022 at 08:14:33PM +0200, Reiner Herrmann wrote:
> surf currently does not support wayland (and I think it's unlikely it will
> get support for it in the long term).
>
> On the Internet I found the following workaround that might work for you:
>
> $ GDK_BACKEND=x11 surf
Since Surf does not currently support Wayland I think that it would be
a good idea to patch the source code to force the X11 backend (see the
attached patch).
Berto
Index: surf-2.1+git20221016/surf.c
===================================================================
--- surf-2.1+git20221016.orig/surf.c
+++ surf-2.1+git20221016/surf.c
@@ -347,6 +347,7 @@ setup(void)
atoms[AtomUri] = XInternAtom(dpy, "_SURF_URI", False);
atoms[AtomUTF8] = XInternAtom(dpy, "UTF8_STRING", False);
+ gdk_set_allowed_backends("x11");
gtk_init(NULL, NULL);
gdpy = gdk_display_get_default();