mirror of
https://github.com/yshui/picom.git
synced 2025-04-21 18:03:02 -04:00
win: assert we won't clobber existing mask
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
7d0d693ca7
commit
9d7cbe49f1
1 changed files with 1 additions and 0 deletions
|
@ -346,6 +346,7 @@ static inline bool win_bind_pixmap(struct backend_base *b, struct managed_win *w
|
|||
}
|
||||
|
||||
bool win_bind_mask(struct backend_base *b, struct managed_win *w) {
|
||||
assert(!w->mask_image);
|
||||
auto reg_bound_local = win_get_bounding_shape_global_by_val(w);
|
||||
pixman_region32_translate(®_bound_local, -w->g.x, -w->g.y);
|
||||
w->mask_image = b->ops->make_mask(
|
||||
|
|
Loading…
Add table
Reference in a new issue