diff options
author | Brandon Gooch <jamesbrandongooch@gmail.com> | 2012-08-11 21:58:58 -0500 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-02-17 18:04:34 -0800 |
commit | 5a7d139f33288c77c77622cdcb1453a58e25a2ec (patch) | |
tree | 9da1bc9aa9194486c2bae26e91de65fbad45cda4 | |
parent | 9c86c0f21b9d34c0ae491327482415a946102c4f (diff) |
xcompmgr 1.1.6-1 doesn't draw shadows
This patch reworks the XFixesIntersectRegion calls to apply to the
correct window modes.
Fixes: https://gitlab.freedesktop.org/xorg/app/xcompmgr/issues/3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xcompmgr.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1028,7 +1028,6 @@ paint_all (Display *dpy, XserverRegion region) { w->borderClip = XFixesCreateRegion (dpy, NULL, 0); XFixesCopyRegion (dpy, w->borderClip, region); - XFixesIntersectRegion(dpy, w->borderClip, w->borderClip, w->borderSize); } w->prev_trans = t; t = w; @@ -1080,6 +1079,8 @@ paint_all (Display *dpy, XserverRegion region) if (w->mode == WINDOW_TRANS) { int x, y, wid, hei; + XFixesIntersectRegion(dpy, w->borderClip, w->borderClip, w->borderSize); + XFixesSetPictureClipRegion(dpy, rootBuffer, 0, 0, w->borderClip); #if HAS_NAME_WINDOW_PIXMAP x = w->a.x; y = w->a.y; @@ -1099,6 +1100,8 @@ paint_all (Display *dpy, XserverRegion region) else if (w->mode == WINDOW_ARGB) { int x, y, wid, hei; + XFixesIntersectRegion(dpy, w->borderClip, w->borderClip, w->borderSize); + XFixesSetPictureClipRegion(dpy, rootBuffer, 0, 0, w->borderClip); #if HAS_NAME_WINDOW_PIXMAP x = w->a.x; y = w->a.y; |