Wayland: Fix an abort when changing background colors with wayland_titlebar_color set to background

Fixes #5562
This commit is contained in:
Kovid Goyal 2022-10-07 14:13:12 +05:30
parent 94b3776066
commit fbfaefd72a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 4 deletions

View File

@ -50,6 +50,8 @@ Detailed list of changes
- Wayland: Fix background image scaling using tiled mode on high DPI screens - 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`) - Update to Unicode 15.0 (:pull:`5542`)

View File

@ -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.use_custom_titlebar_color = use_custom_color;
decs.titlebar_color = color; decs.titlebar_color = color;
} }
if (window->decorated && decs.top.surface) { change_csd_title(window);
update_title_bar(window);
damage_csd(top, decs.top.buffer.front);
}
} }