ssd: refactor in preparation for making ssd_visible_box() private

Prepare to move code from output/render functions to ssd. We want
rendering functions to just render, not calculate decoration geometry
and such like.
This commit is contained in:
Johan Malm 2021-08-22 14:12:05 +01:00
parent 5f01c49b72
commit 8c96c65018
5 changed files with 9 additions and 13 deletions

View file

@ -354,9 +354,9 @@ geometry_changed(struct view *view)
}
void
ssd_update_geometry(struct view *view)
ssd_update_geometry(struct view *view, bool force)
{
if (!geometry_changed(view)) {
if (!geometry_changed(view) && !force) {
return;
}
struct ssd_part *part;