From 8eabc49e12a3706dbd755da7b77b99de9b58d78e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 23 Apr 2024 05:15:08 +0000 Subject: [PATCH] DisplayServer (Linux): fix silly bug that detect x11 as wayland Fix #805 --- src/detection/displayserver/linux/wayland/wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/displayserver/linux/wayland/wayland.c b/src/detection/displayserver/linux/wayland/wayland.c index 09ae7ae8e..181a02b03 100644 --- a/src/detection/displayserver/linux/wayland/wayland.c +++ b/src/detection/displayserver/linux/wayland/wayland.c @@ -135,7 +135,7 @@ void ffdsConnectWayland(FFDisplayServerResult* result) const char* xdgSessionType = getenv("XDG_SESSION_TYPE"); //If XDG_SESSION_TYPE is set, and doesn't contain "wayland", we are probably not running in a wayland session. - if(xdgSessionType != NULL && ffStrEqualsIgnCase(xdgSessionType, "wayland")) + if(xdgSessionType != NULL && !ffStrEqualsIgnCase(xdgSessionType, "wayland")) return; //If XDG_SESSION_TYPE is not set, check if WAYLAND_DISPLAY or WAYLAND_SOCKET is set.