Kaynağa Gözat

tools: use x11 backend under Wayland

Daniele Bartolini 4 yıl önce
ebeveyn
işleme
29613fe38b
2 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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 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 projects opened from the menubar not being added to the recent projects list.
 * Fixed deploy getting stuck.
 * Fixed deploy getting stuck.
+* Linux: fixed launching editor under Wayland.
 
 
 0.44.0
 0.44.0
 ------
 ------

+ 3 - 0
tools/level_editor/level_editor.vala

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