It’s the same as setting the GDK_BACKEND=x11 as an environment variable, but from within the program itself.
yes I wonderered if that was possible !
Good to know it is.
Isn’t it a temporary workaround though ? I mean, if wayland is going to be the new standard, holding on X11-only compat may not be the west way to handle this (also because all the rest of JUCE works ok with wayland)
At the moment, all of JUCE’s windowing code for Linux/BSD is written against X11. It runs on Wayland through Xwayland.
At some point we’ll have to migrate all of JUCE to run under Wayland without requiring Xwayland. Until that time, forcing webkit2gtk to use X11 as a backend is no more a temporary solution than the use of X11 elsewhere in JUCE.
I may be mixing things, but wouldn’t it be a good occasion to switch to Vulkan, or some more modern/cross-platform renderer ?
Unfortunately, the patch didn’t seem to fix it…
