From 1bd26d259a5f2edec1dbd516716149c4e1270b54 Mon Sep 17 00:00:00 2001 From: John Lindgren Date: Sat, 27 Nov 2021 11:00:50 -0500 Subject: [PATCH] Force repaint after window title changes When a window title changed dynamically (for example when running "cd" within an xfce4-terminal), the titlebar did not immediately update to show the new title. (The titlebar would update as soon as the mouse cursor moved.) --- src/xdg.c | 1 + src/xwayland.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/xdg.c b/src/xdg.c index 9bc24ef2..d6ddb52a 100644 --- a/src/xdg.c +++ b/src/xdg.c @@ -158,6 +158,7 @@ handle_set_title(struct wl_listener *listener, void *data) struct view *view = wl_container_of(listener, view, set_title); assert(view); view_update_title(view); + damage_all_outputs(view->server); } static void diff --git a/src/xwayland.c b/src/xwayland.c index 1078c961..a9e19c98 100644 --- a/src/xwayland.c +++ b/src/xwayland.c @@ -132,6 +132,7 @@ handle_set_title(struct wl_listener *listener, void *data) struct view *view = wl_container_of(listener, view, set_title); assert(view); view_update_title(view); + damage_all_outputs(view->server); } static void -- 2.52.0