From 38a2633f20a9b421b46c0201ae8efcbd67c9528e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 23 Feb 2026 19:40:07 +0530 Subject: [PATCH] Cleanup previous PR --- docs/changelog.rst | 6 ++---- kitty/options/definition.py | 9 ++++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 1b2b7c223..045d0fa21 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -240,10 +240,8 @@ Detailed list of changes - URL detection: Allow trailing asterisks in URLs (:iss:`9543`) -- Wayland: Add support for :code:`titlebar-only` in - :opt:`hide_window_decorations` to hide the titlebar while keeping shadow - borders for resizing. On compositors that use server-side decorations (such as - GNOME), this forces client-side decoration mode (:pull:`9486`) +- Wayland: Add support for :code:`titlebar-only` in :opt:`hide_window_decorations` + to hide the titlebar while keeping shadows for window resizing. (:pull:`9486`) 0.45.0 [2025-12-24] diff --git a/kitty/options/definition.py b/kitty/options/definition.py index ea64d2411..0765e8539 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -1349,11 +1349,14 @@ opt('hide_window_decorations', 'no', option_type='hide_window_decorations', ctype='uint', long_text=''' Hide the window decorations (title-bar and window borders) with :code:`yes`. On -macOS, :code:`titlebar-only` and :code:`titlebar-and-corners` can be used to only hide the titlebar and the rounded corners. +macOS, :code:`titlebar-only` and :code:`titlebar-and-corners` can be used to +only hide the titlebar and the rounded corners. + On Wayland, :code:`titlebar-only` can be used to hide the titlebar while keeping -the window shadow borders for resizing. On compositors that use server-side -decorations (such as GNOME), both :code:`yes` and :code:`titlebar-only` force +the window shadow for resizing. On compositors that have server-side +decorations (such as anything but GNOME), both :code:`yes` and :code:`titlebar-only` force client-side decoration mode. + Whether this works and exactly what effect it has depends on the window manager/operating system. Note that the effects of changing this option when reloading config are undefined. When using :code:`titlebar-only` on macOS, it is useful to also set