Skip to content

Commit a926169

Browse files
committed
avoid invoking glfwSetWindowIcon() on Wayland
1 parent 7b9e16e commit a926169

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,10 @@ protected void showWindow() {
424424
* @param settings settings for getting the icons
425425
*/
426426
protected void setWindowIcon(final AppSettings settings) {
427+
if (glfwGetPlatform() == GLFW_PLATFORM_WAYLAND) {
428+
// Wayland doesn't support custom icons.
429+
return;
430+
}
427431

428432
final Object[] icons = settings.getIcons();
429433
if (icons == null) return;

0 commit comments

Comments
 (0)