Update titles when surfaces are committed

This commit is contained in:
Ryan Dwyer 2018-05-03 15:42:49 +10:00
parent 89d1571041
commit 74d1367fac
2 changed files with 3 additions and 0 deletions

View file

@ -176,6 +176,8 @@ static void handle_commit(struct wl_listener *listener, void *data) {
// TODO: Let floating views do whatever // TODO: Let floating views do whatever
view_update_size(view, xdg_shell_v6_view->pending_width, view_update_size(view, xdg_shell_v6_view->pending_width,
xdg_shell_v6_view->pending_height); xdg_shell_v6_view->pending_height);
container_update_title(view->swayc,
view->wlr_xdg_surface_v6->toplevel->title);
view_damage(view, false); view_damage(view, false);
} }

View file

@ -223,6 +223,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
view_update_size(view, xwayland_view->pending_width, view_update_size(view, xwayland_view->pending_width,
xwayland_view->pending_height); xwayland_view->pending_height);
view_damage(view, false); view_damage(view, false);
container_update_title(view->swayc, view->wlr_xwayland_surface->title);
} }
static void handle_unmap(struct wl_listener *listener, void *data) { static void handle_unmap(struct wl_listener *listener, void *data) {