mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
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:
1 parent
f05bec0440
commit
a880f221fe
1 file changed
+3
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user