Only use wayland if a special env var is present

wayland is currently fairly broken. No window decorations and no key
auto-repeat.
This commit is contained in:
Kovid Goyal 2017-11-21 07:35:45 +05:30
parent b3de442116
commit b8937bc151
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -65,5 +65,5 @@ def glfw_path(module):
is_wayland = False
if os.environ.get('WAYLAND_DISPLAY') and os.path.exists(glfw_path('wayland')):
if os.environ.get('WAYLAND_DISPLAY') and 'KITTY_ENABLE_WAYLAND' in os.environ and os.path.exists(glfw_path('wayland')):
is_wayland = True