aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2020-07-02 12:14:52 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2020-07-03 09:23:35 +0200
commitb5a35c484f651e25b226c9661669c8a40439f09b (patch)
tree7c50b7f6a158b65f152cafe3e4596de8d78ee3ca /sway/tree/view.c
parentUnset DISPLAY when wlr_xwayland fails (diff)
downloadsway-b5a35c484f651e25b226c9661669c8a40439f09b.tar.gz
sway-b5a35c484f651e25b226c9661669c8a40439f09b.tar.zst
sway-b5a35c484f651e25b226c9661669c8a40439f09b.zip
tree/view: fix segfault in view_update_title
xdg-shell doesn't allow clients to set the title to NULL, so we shouldn't need to call wlr_foreign_toplevel_handle_v1_set_title with an empty string to reset the old one. Closes: https://github.com/swaywm/sway/issues/5488
Diffstat (limited to 'sway/tree/view.c')
-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) {
1171 1171
1172 ipc_event_window(view->container, "title"); 1172 ipc_event_window(view->container, "title");
1173 1173
1174 if (view->foreign_toplevel) { 1174 if (view->foreign_toplevel && title) {
1175 wlr_foreign_toplevel_handle_v1_set_title(view->foreign_toplevel, title); 1175 wlr_foreign_toplevel_handle_v1_set_title(view->foreign_toplevel, title);
1176 } 1176 }
1177} 1177}