fix(linux): prefer X11 over Flutter 3.50's Wayland renderer

Flutter 3.50 presents frames on a Wayland subsurface. On some compositors
the window stays black or shows a misplaced part of the page. Through X11
(XWayland on a Wayland session) GTK draws the frame as it did before.
Wayland is still used when no X server answers, and GDK_BACKEND=wayland
asks for it first. Not compiled or run on Linux.

Refs #925
This commit is contained in:
zarzet committed 2026-11-18 21:48:21 +07:00
1 parent f05bec0440
commit a880f221fe
1 file changed
+3
+3
View File
@@ -1,6 +1,9 @@
#include "my_application.h"
int main(int argc, char** argv) {
// Flutter 3.50's Wayland renderer leaves the window black on some
// compositors, so prefer X11. GDK_BACKEND=wayland overrides.
gdk_set_allowed_backends("x11,wayland");
g_autoptr(MyApplication) app = my_application_new();
return g_application_run(G_APPLICATION(app), argc, argv);
}