aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/tree/view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 53c11a32..ac314795 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -1171,7 +1171,7 @@ void view_update_title(struct sway_view *view, bool force) {
ipc_event_window(view->container, "title");
- if (view->foreign_toplevel) {
+ if (view->foreign_toplevel && title) {
wlr_foreign_toplevel_handle_v1_set_title(view->foreign_toplevel, title);
}
}