chiark / gitweb /
Imported Debian patch 1.0.0-5
[e16] / debian / patch / 003_compmgr_shape.patch
1 src/ecompmgr.c: Repaint translucent windows with shapes correctly.
2
3 The existing code applied an alpha mask, but didn't clip it to the
4 window's shape properly.
5 Index: build/src/ecompmgr.c
6 ===================================================================
7 --- build.orig/src/ecompmgr.c   2011-06-02 15:16:16.000000000 +0100
8 +++ build/src/ecompmgr.c        2011-06-02 15:16:27.000000000 +0100
9 @@ -2121,6 +2121,7 @@
10              clip = ECompMgrRepaintObjSetClip(rgn_clip, region, cw->clip, x, y);
11              if (EDebug(EDBUG_TYPE_COMPMGR2))
12                 ECompMgrWinDumpInfo("ECompMgrRepaintObj trans", eo, clip, 0);
13 +            ERegionIntersect(clip, cw->shape);
14              XFixesSetPictureClipRegion(dpy, pbuf, 0, 0, clip);
15              if (cw->opacity != OPAQUE && !cw->pict_alpha)
16                 cw->pict_alpha =