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:
Yuxuan Shui 2024-04-08 17:57:08 +01:00
parent e5210aea7b
commit 1d94af4140
No known key found for this signature in database
GPG Key ID: D3A4405BE6CC17F4
1 changed files with 3 additions and 0 deletions

View File

@ -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, &reg_paint_in_bound, &reg_visible);