xwayland: hide content tree at re-map if shaded

This commit is contained in:
John Lindgren 2025-11-24 12:00:34 -05:00
parent 8bd20f19dc
commit 35b3980a5b
2 changed files with 7 additions and 1 deletions

View file

@ -2517,7 +2517,11 @@ view_set_shade(struct view *view, bool shaded)
view->shaded = shaded;
ssd_enable_shade(view->ssd, view->shaded);
/* An unmapped view may not have a content tree */
/*
* An unmapped view may not have a content tree. When the view
* is mapped again, the new content tree will be hidden by the
* map handler, if the view is still shaded at that point.
*/
if (view->content_tree) {
wlr_scene_node_set_enabled(&view->content_tree->node,
!view->shaded);