mirror of
https://github.com/labwc/labwc.git
synced 2025-11-30 06:59:52 -05:00
view: add defensive checks for null content_tree
This commit is contained in:
parent
b1e7282995
commit
8bd20f19dc
4 changed files with 14 additions and 3 deletions
|
|
@ -2517,7 +2517,11 @@ view_set_shade(struct view *view, bool shaded)
|
|||
|
||||
view->shaded = shaded;
|
||||
ssd_enable_shade(view->ssd, view->shaded);
|
||||
wlr_scene_node_set_enabled(&view->content_tree->node, !view->shaded);
|
||||
/* An unmapped view may not have a content tree */
|
||||
if (view->content_tree) {
|
||||
wlr_scene_node_set_enabled(&view->content_tree->node,
|
||||
!view->shaded);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue