Add some window related helper

For the backend refactoring.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2018-12-22 00:33:40 +00:00
parent db5a78790c
commit 2cf04544d8
2 changed files with 10 additions and 2 deletions

View File

@ -117,6 +117,8 @@ void win_get_region_noframe_local(win *w, region_t *res) {
pixman_region32_init_rect(res, x, y, width, height);
}
gen_by_val(win_get_region_noframe_local)
/**
* Add a window to damaged area.
*
@ -1130,6 +1132,8 @@ void win_extents(win *w, region_t *res) {
w->g.y + w->shadow_dy, w->shadow_width, w->shadow_height);
}
gen_by_val(win_extents)
/**
* Update the out-dated bounding shape of a window.
*