Only try the GDK X11 backend, as the FlView only currently supports X11 (#60654)

This commit is contained in:
Robert Ancell
2020-07-09 14:23:48 +12:00
committed by GitHub
parent f89814b02c
commit 266aeb81a0

View File

@@ -1,6 +1,10 @@
#include "my_application.h"
int main(int argc, char** argv) {
// Only X11 is currently supported.
// Wayland support is being developed: https://github.com/flutter/flutter/issues/57932.
gdk_set_allowed_backends("x11");
g_autoptr(MyApplication) app = my_application_new();
return g_application_run(G_APPLICATION(app), argc, argv);
}