mirror of
https://github.com/yshui/picom.git
synced 2025-03-03 16:14:36 -05:00
Bug fix: Issue #38, fixes painting specially-shaped semi-transparent windows
Fix taken from xcompmgr.
This commit is contained in:
parent
4861d50ca4
commit
8628371a83
1 changed files with 4 additions and 0 deletions
|
@ -1122,6 +1122,10 @@ paint_all(Display *dpy, XserverRegion region) {
|
||||||
if (w->mode != WINDOW_SOLID || HAS_FRAME_OPACITY(w)) {
|
if (w->mode != WINDOW_SOLID || HAS_FRAME_OPACITY(w)) {
|
||||||
int x, y, wid, hei;
|
int x, y, wid, hei;
|
||||||
|
|
||||||
|
// Necessary to make sure specially-shaped windows are
|
||||||
|
// painted correctly
|
||||||
|
XFixesIntersectRegion(dpy, w->border_clip, w->border_clip, w->border_size);
|
||||||
|
XFixesSetPictureClipRegion(dpy, root_buffer, 0, 0, w->border_clip);
|
||||||
#if HAS_NAME_WINDOW_PIXMAP
|
#if HAS_NAME_WINDOW_PIXMAP
|
||||||
x = w->a.x;
|
x = w->a.x;
|
||||||
y = w->a.y;
|
y = w->a.y;
|
||||||
|
|
Loading…
Add table
Reference in a new issue