diff --git a/docs/changelog.rst b/docs/changelog.rst index b46de6420..501fa9758 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -155,7 +155,7 @@ To update |kitty|, :doc:`follow the instructions `. before being maximized - GNOME/Wayland: Improve window decorations the titlebar now shows the window - title (:iss:`3284`) + title. Allow running under Wayland on GNOME by default. (:iss:`3284`) - Add an option, :opt:`detect_urls` to control whether kitty will detect URLs when the mouse moves over them (:pull:`3118`) diff --git a/kitty/constants.py b/kitty/constants.py index ca4eb1b59..a0636a5a0 100644 --- a/kitty/constants.py +++ b/kitty/constants.py @@ -146,26 +146,7 @@ def detect_if_wayland_ok() -> bool: wayland = glfw_path('wayland') if not os.path.exists(wayland): return False - # GNOME does not support xdg-decorations - # https://gitlab.gnome.org/GNOME/mutter/issues/217 - import ctypes - lib = ctypes.CDLL(wayland) - check = lib.glfwWaylandCheckForServerSideDecorations - check.restype = ctypes.c_char_p - check.argtypes = () - try: - ans = bytes(check()) - except Exception: - return False - if ans == b'NO': - print( - 'Your Wayland compositor does not support server side window decorations,' - ' disabling Wayland. You can force Wayland support using the' - ' linux_display_server option in kitty.conf' - ' See https://drewdevault.com/2018/01/27/Sway-and-client-side-decorations.html' - ' for more information.', - file=sys.stderr) - return ans == b'YES' + return True def is_wayland(opts: Optional[Options] = None) -> bool: