Just clear shadow anyways

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2018-09-30 20:12:06 +01:00
parent 97cd3421b0
commit 6a41bebfa5
1 changed files with 1 additions and 2 deletions

View File

@ -1796,8 +1796,7 @@ paint_all(session_t *ps, region_t *region, const region_t *region_real, win * co
// Mask out the body of the window from the shadow
// Doing it here instead of in make_shadow() for saving GPU
// power and handling shaped windows (XXX unconfirmed)
if (w->mode != WMODE_SOLID)
pixman_region32_subtract(&reg_tmp, &reg_tmp, &w->bounding_shape);
pixman_region32_subtract(&reg_tmp, &reg_tmp, &w->bounding_shape);
#ifdef CONFIG_XINERAMA
if (ps->o.xinerama_shadow_crop && w->xinerama_scr >= 0)