mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
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
10 lines
356 B
C++
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);
|
|
}
|