The current implementation uses the XDG_SESSION_TYPE variable to determine if Wayland is being used. This does not account for users opting to force the usage of X through XWayland, which would be done by unsetting the environment variable WAYLAND_DISPLAY. This PR accounts for the unsetting of the WAYLAND_DISPLAY variable by falling back to the X11 method.
The current implementation uses the
XDG_SESSION_TYPE
variable to determine if Wayland is being used. This does not account for users opting to force the usage of X through XWayland, which would be done by unsetting the environment variableWAYLAND_DISPLAY
. This PR accounts for the unsetting of theWAYLAND_DISPLAY
variable by falling back to the X11 method.