mirror of https://github.com/yshui/picom.git
backend: document my confusion
See e3e73d7fc1
The reason composing worked without using the mask image is because the
paint region already carves the relevant parts of shaped windows.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
e5210aea7b
commit
1d94af4140
|
@ -441,6 +441,9 @@ bool paint_all_new(session_t *ps, struct managed_win *const t) {
|
|||
|
||||
// Draw window on target
|
||||
if (w->frame_opacity == 1) {
|
||||
// We use both reg_paint_in_bound and mask image, which is
|
||||
// probably no strictly necessary. Even for shaped windows, they
|
||||
// should be the same.
|
||||
ps->backend_data->ops->compose(
|
||||
ps->backend_data, w->win_image, window_coord, w->mask_image,
|
||||
window_coord, ®_paint_in_bound, ®_visible);
|
||||
|
|
Loading…
Reference in New Issue