We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e740faf commit a62ae6fCopy full SHA for a62ae6f
1 file changed
jme3-core/src/main/java/com/jme3/system/JmeSystemDelegate.java
@@ -310,9 +310,12 @@ public Platform getPlatform() {
310
}
311
312
public boolean isWaylandSession() {
313
- // The following matches the test GLFW does to enable the Wayland backend.
314
- if ("wayland".equalsIgnoreCase(System.getenv("XDG_SESSION_TYPE")) && System.getenv("WAYLAND_DISPLAY") != null) {
315
- return true;
+ Platform platform = getPlatform();
+ if (platform.getOs() == Platform.Os.Linux) {
+ // The following matches the test GLFW does to enable the Wayland backend.
316
+ if ("wayland".equalsIgnoreCase(System.getenv("XDG_SESSION_TYPE")) && System.getenv("WAYLAND_DISPLAY") != null) {
317
+ return true;
318
+ }
319
320
return false;
321
0 commit comments