allow shadows on argb windows
This commit is contained in:
parent
6c9166c36f
commit
b0608d0c7c
|
@ -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 New Issue