mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 14:34:07 +01:00
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 b5a35c484f
)
This commit is contained in:
parent
2cc61bbbbe
commit
cdff693e2e
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user