diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2020-07-02 12:14:52 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2020-07-02 12:14:52 +0200 |
| commit | b8f58c718bb044a5d5b156822832381d6246d95d (patch) | |
| tree | 3a867e9e180c2a4fbbb08850db8bf966916390e7 | |
| parent | f7d10b9d5b1e2deb9f4fa232321cfb6e970d2118 (diff) | |
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
(cherry picked from commit b5a35c484f651e25b226c9661669c8a40439f09b)
| -rw-r--r-- | sway/tree/view.c | 2 |
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); } } |
