Support hide_window_decorations titlebar-only on Wayland

Hide the CSD titlebar subsurface while keeping shadow borders for
resizing. On SSD compositors (GNOME), forces CSD mode to draw
kitty's own shadows without a titlebar.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Antoine Cellerier
2026-02-08 12:12:15 +01:00
parent abb1141826
commit ef4574ae97
9 changed files with 82 additions and 20 deletions

2
glfw/wl_platform.h vendored
View File

@@ -231,7 +231,7 @@ typedef struct _GLFWwindowWayland
} pointerLock;
struct {
bool serverSide, buffer_destroyed, titlebar_needs_update, dragging;
bool serverSide, buffer_destroyed, titlebar_needs_update, dragging, titlebar_hidden;
_GLFWCSDSurface focus;
_GLFWWaylandCSDSurface titlebar, shadow_left, shadow_right, shadow_top, shadow_bottom, shadow_upper_left, shadow_upper_right, shadow_lower_left, shadow_lower_right;