… | |
… | |
130 | return true; |
130 | return true; |
131 | # endif |
131 | # endif |
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 | if (((flags & blurNeeded) && !(flags & blurServerSide)) |
136 | if ((flags & blurNeeded) && !(flags & blurServerSide)) |
|
|
137 | return true; |
|
|
138 | # endif |
136 | || ((flags & tintNeeded) && !(flags & tintServerSide))) |
139 | if ((flags & tintNeeded) && !(flags & tintServerSide)) |
137 | return true; |
140 | return true; |
138 | } |
141 | } |
139 | # endif |
142 | # endif |
140 | return false; |
143 | return false; |
141 | } |
144 | } |
142 | |
145 | |
… | |
… | |
932 | pf.direct.greenMask = 0xff; |
935 | pf.direct.greenMask = 0xff; |
933 | pf.direct.blueMask = 0xff; |
936 | pf.direct.blueMask = 0xff; |
934 | pf.direct.alphaMask = 0xff; |
937 | pf.direct.alphaMask = 0xff; |
935 | |
938 | |
936 | XRenderPictFormat *solid_format = XRenderFindFormat (dpy, |
939 | XRenderPictFormat *solid_format = XRenderFindFormat (dpy, |
937 | (PictFormatType| |
940 | (PictFormatType| |
938 | PictFormatDepth| |
941 | PictFormatDepth| |
939 | PictFormatRedMask| |
942 | PictFormatRedMask| |
940 | PictFormatGreenMask| |
943 | PictFormatGreenMask| |
941 | PictFormatBlueMask| |
944 | PictFormatBlueMask| |
942 | PictFormatAlphaMask), |
945 | PictFormatAlphaMask), |
943 | &pf, |
946 | &pf, |
944 | 0); |
947 | 0); |
945 | XRenderPictFormat *root_format = XRenderFindVisualFormat (dpy, DefaultVisualOfScreen (ScreenOfDisplay (dpy, target->display->screen))); |
948 | XRenderPictFormat *root_format = XRenderFindVisualFormat (dpy, DefaultVisualOfScreen (ScreenOfDisplay (dpy, target->display->screen))); |
946 | XRenderPictureAttributes pa ; |
949 | XRenderPictureAttributes pa ; |
947 | |
950 | |
948 | back_pic = XRenderCreatePicture (dpy, tiled_root_pmap, root_format, 0, &pa); |
951 | back_pic = XRenderCreatePicture (dpy, tiled_root_pmap, root_format, 0, &pa); |
949 | |
952 | |
… | |
… | |
1094 | } |
1097 | } |
1095 | else if (background_flags && pmap_depth != target->depth) |
1098 | else if (background_flags && pmap_depth != target->depth) |
1096 | { |
1099 | { |
1097 | 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); |
1098 | } |
1101 | } |
|
|
1102 | |
1099 | # else /* our own client-side tinting */ |
1103 | # elif !XFT /* our own client-side tinting */ |
|
|
1104 | |
|
|
1105 | /* ATTENTION: We ASSUME that XFT will let us do all the tinint neccessary server-side. |
|
|
1106 | This may need to be changed in need_client_seide_rendering() logic is altered !!! */ |
|
|
1107 | |
1100 | if (background_flags && (flags & isInvalid)) |
1108 | if (background_flags && (flags & isInvalid)) |
1101 | { |
1109 | { |
1102 | 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); |
1103 | if (result != NULL && !(background_flags & transpPmapTinted) && (flags & tintNeeded)) |
1111 | if (result != NULL && !(background_flags & transpPmapTinted) && (flags & tintNeeded)) |
1104 | { |
1112 | { |
… | |
… | |
1236 | } |
1244 | } |
1237 | } |
1245 | } |
1238 | |
1246 | |
1239 | #endif /* HAVE_BG_PIXMAP */ |
1247 | #endif /* HAVE_BG_PIXMAP */ |
1240 | |
1248 | |
1241 | #if defined(ENABLE_TRANSPARENCY) && !defined(HAVE_AFTERIMAGE) |
1249 | #if defined(ENABLE_TRANSPARENCY) && !defined(HAVE_AFTERIMAGE) && !XFT |
1242 | /* taken from aterm-0.4.2 */ |
1250 | /* taken from aterm-0.4.2 */ |
1243 | |
1251 | |
1244 | typedef uint32_t RUINT32T; |
1252 | typedef uint32_t RUINT32T; |
1245 | |
1253 | |
1246 | static void |
1254 | static void |