mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
allow shadows on argb windows
This commit is contained in:
parent
6c9166c36f
commit
b0608d0c7c
1 changed files with 2 additions and 2 deletions
|
@ -834,7 +834,7 @@ win_extents(Display *dpy, win *w) {
|
||||||
r.height = w->a.height + w->a.border_width * 2;
|
r.height = w->a.height + w->a.border_width * 2;
|
||||||
|
|
||||||
if (win_type_shadow[w->window_type]) {
|
if (win_type_shadow[w->window_type]) {
|
||||||
if (w->mode != WINDOW_ARGB) {
|
//if (w->mode != WINDOW_ARGB) {
|
||||||
XRectangle sr;
|
XRectangle sr;
|
||||||
|
|
||||||
w->shadow_dx = shadow_offset_x;
|
w->shadow_dx = shadow_offset_x;
|
||||||
|
@ -872,7 +872,7 @@ win_extents(Display *dpy, win *w) {
|
||||||
if (sr.y + sr.height > r.y + r.height) {
|
if (sr.y + sr.height > r.y + r.height) {
|
||||||
r.height = sr.y + sr.height - r.y;
|
r.height = sr.y + sr.height - r.y;
|
||||||
}
|
}
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
return XFixesCreateRegion(dpy, &r, 1);
|
return XFixesCreateRegion(dpy, &r, 1);
|
||||||
|
|
Loading…
Reference in a new issue