From 7d52d43667c718dc3f10eae9a522e45a4a6a5f8d Mon Sep 17 00:00:00 2001 From: Colin Kinloch Date: Fri, 24 Dec 2021 02:14:20 +0000 Subject: [PATCH] [Wayland] Fix window title update (#13396) --- gfx/drivers_context/wayland_ctx.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gfx/drivers_context/wayland_ctx.c b/gfx/drivers_context/wayland_ctx.c index 93d429d1e6..34f1c49a3c 100644 --- a/gfx/drivers_context/wayland_ctx.c +++ b/gfx/drivers_context/wayland_ctx.c @@ -249,13 +249,12 @@ static void gfx_ctx_wl_update_title(void *data) if (wl && title[0]) { if (wl->deco) - { - zxdg_toplevel_decoration_v1_set_mode(wl->deco, - ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE); - } + { + zxdg_toplevel_decoration_v1_set_mode(wl->deco, + ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE); } - xdg_toplevel_set_title(wl->xdg_toplevel, title); + } } static bool gfx_ctx_wl_get_metrics(void *data,