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.)
This commit is contained in:
John Lindgren 2021-11-27 11:00:50 -05:00 committed by ARDiDo
parent d50c2f2eac
commit 1bd26d259a
2 changed files with 2 additions and 0 deletions

View file

@ -158,6 +158,7 @@ handle_set_title(struct wl_listener *listener, void *data)
struct view *view = wl_container_of(listener, view, set_title); struct view *view = wl_container_of(listener, view, set_title);
assert(view); assert(view);
view_update_title(view); view_update_title(view);
damage_all_outputs(view->server);
} }
static void static void

View file

@ -132,6 +132,7 @@ handle_set_title(struct wl_listener *listener, void *data)
struct view *view = wl_container_of(listener, view, set_title); struct view *view = wl_container_of(listener, view, set_title);
assert(view); assert(view);
view_update_title(view); view_update_title(view);
damage_all_outputs(view->server);
} }
static void static void