… | |
… | |
132 | # ifdef ENABLE_TRANSPARENCY |
132 | # ifdef ENABLE_TRANSPARENCY |
133 | if (flags & isTransparent) |
133 | if (flags & isTransparent) |
134 | { |
134 | { |
135 | # ifdef HAVE_AFTERIMAGE // can't blur without libAI anyways |
135 | # ifdef HAVE_AFTERIMAGE // can't blur without libAI anyways |
136 | if ((flags & blurNeeded) && !(flags & blurServerSide)) |
136 | if ((flags & blurNeeded) && !(flags & blurServerSide)) |
137 | return true; |
137 | return true; |
138 | # endif |
138 | # endif |
139 | if ((flags & tintNeeded) && !(flags & tintServerSide)) |
139 | if ((flags & tintNeeded) && !(flags & tintServerSide)) |
140 | return true; |
140 | return true; |
141 | } |
141 | } |
142 | # endif |
142 | # endif |
… | |
… | |
935 | pf.direct.greenMask = 0xff; |
935 | pf.direct.greenMask = 0xff; |
936 | pf.direct.blueMask = 0xff; |
936 | pf.direct.blueMask = 0xff; |
937 | pf.direct.alphaMask = 0xff; |
937 | pf.direct.alphaMask = 0xff; |
938 | |
938 | |
939 | XRenderPictFormat *solid_format = XRenderFindFormat (dpy, |
939 | XRenderPictFormat *solid_format = XRenderFindFormat (dpy, |
940 | (PictFormatType| |
940 | (PictFormatType| |
941 | PictFormatDepth| |
941 | PictFormatDepth| |
942 | PictFormatRedMask| |
942 | PictFormatRedMask| |
943 | PictFormatGreenMask| |
943 | PictFormatGreenMask| |
944 | PictFormatBlueMask| |
944 | PictFormatBlueMask| |
945 | PictFormatAlphaMask), |
945 | PictFormatAlphaMask), |
946 | &pf, |
946 | &pf, |
947 | 0); |
947 | 0); |
948 | XRenderPictFormat *root_format = XRenderFindVisualFormat (dpy, DefaultVisualOfScreen (ScreenOfDisplay (dpy, target->display->screen))); |
948 | XRenderPictFormat *root_format = XRenderFindVisualFormat (dpy, DefaultVisualOfScreen (ScreenOfDisplay (dpy, target->display->screen))); |
949 | XRenderPictureAttributes pa ; |
949 | XRenderPictureAttributes pa ; |
950 | |
950 | |
951 | back_pic = XRenderCreatePicture (dpy, tiled_root_pmap, root_format, 0, &pa); |
951 | back_pic = XRenderCreatePicture (dpy, tiled_root_pmap, root_format, 0, &pa); |
952 | |
952 | |
… | |
… | |
1100 | result = XGetImage (target->dpy, pixmap, 0, 0, pmap_width, pmap_height, AllPlanes, ZPixmap); |
1100 | result = XGetImage (target->dpy, pixmap, 0, 0, pmap_width, pmap_height, AllPlanes, ZPixmap); |
1101 | } |
1101 | } |
1102 | |
1102 | |
1103 | # elif !XFT /* our own client-side tinting */ |
1103 | # elif !XFT /* our own client-side tinting */ |
1104 | |
1104 | |
1105 | /* ATTENTION: We ASSUME that XFT will let us do all the tinint neccessary server-side. |
1105 | /* ATTENTION: We ASSUME that XFT will let us do all the tinting neccessary server-side. |
1106 | This may need to be changed in need_client_seide_rendering() logic is altered !!! */ |
1106 | This may need to be changed in need_client_side_rendering() logic is altered !!! */ |
1107 | |
1107 | |
1108 | if (background_flags && (flags & isInvalid)) |
1108 | if (background_flags && (flags & isInvalid)) |
1109 | { |
1109 | { |
1110 | result = XGetImage (target->dpy, pixmap, 0, 0, pmap_width, pmap_height, AllPlanes, ZPixmap); |
1110 | result = XGetImage (target->dpy, pixmap, 0, 0, pmap_width, pmap_height, AllPlanes, ZPixmap); |
1111 | if (result != NULL && !(background_flags & transpPmapTinted) && (flags & tintNeeded)) |
1111 | if (result != NULL && !(background_flags & transpPmapTinted) && (flags & tintNeeded)) |