aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/desktop/xdg_shell_v6.c2
-rw-r--r--sway/desktop/xwayland.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c
index 94556231..5880e9a9 100644
--- a/sway/desktop/xdg_shell_v6.c
+++ b/sway/desktop/xdg_shell_v6.c
@@ -176,6 +176,8 @@ static void handle_commit(struct wl_listener *listener, void *data) {
176 // TODO: Let floating views do whatever 176 // TODO: Let floating views do whatever
177 view_update_size(view, xdg_shell_v6_view->pending_width, 177 view_update_size(view, xdg_shell_v6_view->pending_width,
178 xdg_shell_v6_view->pending_height); 178 xdg_shell_v6_view->pending_height);
179 container_update_title(view->swayc,
180 view->wlr_xdg_surface_v6->toplevel->title);
179 view_damage(view, false); 181 view_damage(view, false);
180} 182}
181 183
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 28f93d6e..a1e672ce 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -223,6 +223,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
223 view_update_size(view, xwayland_view->pending_width, 223 view_update_size(view, xwayland_view->pending_width,
224 xwayland_view->pending_height); 224 xwayland_view->pending_height);
225 view_damage(view, false); 225 view_damage(view, false);
226 container_update_title(view->swayc, view->wlr_xwayland_surface->title);
226} 227}
227 228
228static void handle_unmap(struct wl_listener *listener, void *data) { 229static void handle_unmap(struct wl_listener *listener, void *data) {