Просмотр исходного кода

tools: use x11 backend under Wayland

Daniele Bartolini 4 лет назад
Родитель
Сommit
29613fe38b
2 измененных файлов с 4 добавлено и 0 удалено
  1. 1 0
      docs/changelog.rst
  2. 3 0
      tools/level_editor/level_editor.vala

+ 1 - 0
docs/changelog.rst

@@ -14,6 +14,7 @@ Changelog
 * Fixed opening projects from the menubar when in the welcome panel.
 * Fixed projects opened from the menubar not being added to the recent projects list.
 * Fixed deploy getting stuck.
+* Linux: fixed launching editor under Wayland.
 
 0.44.0
 ------

+ 3 - 0
tools/level_editor/level_editor.vala

@@ -2698,6 +2698,9 @@ public static int main(string[] args)
 		return 1;
 	}
 
+#if CROWN_PLATFORM_LINUX
+	Gdk.set_allowed_backends("x11");
+#endif
 	LevelEditorApplication app = new LevelEditorApplication();
 	return app.run(args);
 }