squash! [wip] Add ToggleShade

Use "effective" height (0 px) for placing shaded windows
This commit is contained in:
Andrew J. Hesford 2024-01-14 19:55:51 -05:00
parent abb644426f
commit 49d2c25655
5 changed files with 51 additions and 14 deletions

View file

@ -395,6 +395,13 @@ bool view_compute_centered_position(struct view *view,
bool view_adjust_floating_geometry(struct view *view, struct wlr_box *geometry);
void view_store_natural_geometry(struct view *view);
/**
* view_effective_height - effective height of view, with respect to shaded state
* @view: view for which effective height is desired
* @use_pending: if false, report current height; otherwise, report pending height
*/
int view_effective_height(struct view *view, bool use_pending);
/**
* view_center - center view within some region
* @view: view to be centered