ssd: Simplify ssd_create()

- Add `active` argument for consistency with `ssd_set_active()`
- `assert()` that `ssd_create()` is not called twice without an
  `ssd_destroy()` in between
This commit is contained in:
John Lindgren 2022-11-26 02:17:04 -05:00
parent 1e17bf6bff
commit d7c86ab8eb
3 changed files with 6 additions and 11 deletions

View file

@ -146,7 +146,7 @@ struct ssd_hover_state {
};
/* Public SSD API */
void ssd_create(struct view *view);
void ssd_create(struct view *view, bool active);
void ssd_set_active(struct view *view, bool active);
void ssd_update_title(struct view *view);
void ssd_update_geometry(struct view *view);