Skip to content

Commit

Permalink
subsurface: Fix damage issue
Browse files Browse the repository at this point in the history
If a subsurface is created and then becomes smaller without repositioning,
the old larger size was never damaged, leaving artifacts on the output.
  • Loading branch information
soreau committed Sep 28, 2024
1 parent 5cf31e2 commit 6da43c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/view/wlr-subsurface-controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ bool wf::wlr_subsurface_root_node_t::update_offset(bool apply_damage)
} else if (changed)
{
set_offset(offset);
} else if (apply_damage)
{
scene::damage_node(this, get_bounding_box());
}

return changed;
Expand Down

0 comments on commit 6da43c8

Please sign in to comment.