HactarCE / key-names

Platform-aware keyboard key name handling for Rust applications
Apache License 2.0
5 stars 5 forks source link

Check if using XWayland #8

Open ArvinSKushwaha opened 1 year ago

ArvinSKushwaha commented 1 year ago

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.