refactor render_con() global parameter into should_inset_con()

This bundles the logic all in one place and thereby makes it a little easier to
understand.
This commit is contained in:
Michael Stapelberg
2022-10-30 16:10:12 +01:00
committed by Michael Stapelberg
parent 2fbb36b95f
commit 9ac027234b
6 changed files with 36 additions and 24 deletions

View File

@ -40,7 +40,7 @@ typedef struct render_params {
* updated in X11.
*
*/
void render_con(Con *con, bool already_inset);
void render_con(Con *con);
/**
* Returns the height for the decorations