view: add defensive checks for null content_tree

This commit is contained in:
John Lindgren 2025-11-24 10:35:21 -05:00
parent de0cf2116e
commit 9fd291d997
4 changed files with 14 additions and 3 deletions

View file

@ -163,7 +163,7 @@ struct view {
struct workspace *workspace;
struct wlr_surface *surface;
struct wlr_scene_tree *scene_tree;
struct wlr_scene_tree *content_tree;
struct wlr_scene_tree *content_tree; /* may be NULL for unmapped view */
/* These are never NULL and an empty string is set instead. */
char *title;