diff --git a/docs/changelog.rst b/docs/changelog.rst index 2d4ac6af9..1d6ee2c57 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -50,6 +50,8 @@ Detailed list of changes - Wayland: Fix background image scaling using tiled mode on high DPI screens +- Wayland: Fix an abort when changing background colors with :opt:`wayland_titlebar_color` set to ``background`` (:iss:`5562`) + - Update to Unicode 15.0 (:pull:`5542`) diff --git a/glfw/wl_client_side_decorations.c b/glfw/wl_client_side_decorations.c index 06c1dce02..3e0a5ab5e 100644 --- a/glfw/wl_client_side_decorations.c +++ b/glfw/wl_client_side_decorations.c @@ -450,8 +450,5 @@ set_titlebar_color(_GLFWwindow *window, uint32_t color, bool use_system_color) { decs.use_custom_titlebar_color = use_custom_color; decs.titlebar_color = color; } - if (window->decorated && decs.top.surface) { - update_title_bar(window); - damage_csd(top, decs.top.buffer.front); - } + change_csd_title(window); }