Files
SpotiFLAC-Mobile/linux/runner/main.cc
T
zarzet a880f221fe 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
2026-11-18 21:48:21 +07:00

10 lines
356 B
C++

#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);
}