From 629a8ad0551def3df9234b109b8d1326b09f52eb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 19 Apr 2021 19:58:02 +0530 Subject: [PATCH] Fix #3501 --- docs/changelog.rst | 3 +++ glfw/wl_window.c | 1 + 2 files changed, 4 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 33375b3d8..4214e9a3f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -13,6 +13,9 @@ To update |kitty|, :doc:`follow the instructions `. - hints kitten: Fix sending hyperlinks to their default handler not working (:pull:`3500`) +- Wayland: Fix regression in previous release causing window decorations to + be drawn even when compositor supports server side decorations (:iss:`3501`) + 0.20.0 [2021-04-19] ---------------------- diff --git a/glfw/wl_window.c b/glfw/wl_window.c index f31c85df2..d0273ae6c 100644 --- a/glfw/wl_window.c +++ b/glfw/wl_window.c @@ -486,6 +486,7 @@ static void setXdgDecorations(_GLFWwindow* window) { if (_glfw.wl.decorationManager) { + window->wl.decorations.serverSide = true; window->wl.xdg.decoration = zxdg_decoration_manager_v1_get_toplevel_decoration( _glfw.wl.decorationManager, window->wl.xdg.toplevel);