mirror of
https://github.com/yshui/picom.git
synced 2025-04-07 17:44:04 -04:00
render: restrict painting region of glx_round_corners_dst
Mistake during rebase. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
06c58d0b8e
commit
896c1a7702
1 changed files with 3 additions and 2 deletions
|
@ -1136,8 +1136,9 @@ void paint_all(session_t *ps, struct managed_win *t, bool ignore_damage) {
|
|||
if (w->blur_background &&
|
||||
(w->mode == WMODE_TRANS ||
|
||||
(ps->o.blur_background_frame && w->mode == WMODE_FRAME_TRANS) ||
|
||||
ps->o.force_win_blend))
|
||||
ps->o.force_win_blend)) {
|
||||
win_blur_background(ps, w, ps->tgt_buffer.pict, ®_tmp);
|
||||
}
|
||||
|
||||
// Painting the window
|
||||
paint_one(ps, w, ®_tmp);
|
||||
|
@ -1151,7 +1152,7 @@ void paint_all(session_t *ps, struct managed_win *t, bool ignore_damage) {
|
|||
glx_round_corners_dst(ps, w, w->glx_texture_bg, w->g.x,
|
||||
w->g.y, wid, hei,
|
||||
(float)ps->psglx->z - 0.5f,
|
||||
(float)w->corner_radius, reg_paint);
|
||||
(float)w->corner_radius, ®_tmp);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue