mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
squash! [wip] Add ToggleShade
Use "effective" height (0 px) for placing shaded windows
This commit is contained in:
parent
abb644426f
commit
49d2c25655
5 changed files with 51 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue