Skip to content

Commit 8eabc49

Browse files
committed
DisplayServer (Linux): fix silly bug that detect x11 as wayland
Fix #805
1 parent 3252812 commit 8eabc49

File tree

1 file changed

+1
-1
lines changed
  • src/detection/displayserver/linux/wayland

1 file changed

+1
-1
lines changed

src/detection/displayserver/linux/wayland/wayland.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void ffdsConnectWayland(FFDisplayServerResult* result)
135135
const char* xdgSessionType = getenv("XDG_SESSION_TYPE");
136136

137137
//If XDG_SESSION_TYPE is set, and doesn't contain "wayland", we are probably not running in a wayland session.
138-
if(xdgSessionType != NULL && ffStrEqualsIgnCase(xdgSessionType, "wayland"))
138+
if(xdgSessionType != NULL && !ffStrEqualsIgnCase(xdgSessionType, "wayland"))
139139
return;
140140

141141
//If XDG_SESSION_TYPE is not set, check if WAYLAND_DISPLAY or WAYLAND_SOCKET is set.

0 commit comments

Comments
 (0)