… | |
… | |
1117 | void bg_init (); |
1117 | void bg_init (); |
1118 | void bg_destroy (); |
1118 | void bg_destroy (); |
1119 | |
1119 | |
1120 | enum { |
1120 | enum { |
1121 | //subset returned by make_transparency_pixmap |
1121 | //subset returned by make_transparency_pixmap |
1122 | isValid = 1 << 0, |
1122 | BG_IS_VALID = 1 << 0, |
1123 | tintNeeded = 1 << 1, |
1123 | BG_NEEDS_TINT = 1 << 1, |
1124 | blurNeeded = 1 << 2, |
1124 | BG_NEEDS_BLUR = 1 << 2, |
1125 | |
1125 | |
1126 | effectsFlags = tintNeeded | blurNeeded, |
1126 | BG_EFFECTS_FLAGS = BG_NEEDS_TINT | BG_NEEDS_BLUR, |
1127 | |
1127 | |
1128 | propScale = 1 << 3, |
1128 | BG_PROP_SCALE = 1 << 3, |
1129 | rootAlign = 1 << 4, |
1129 | BG_ROOT_ALIGN = 1 << 4, |
1130 | geometryFlags = propScale | rootAlign, |
1130 | BG_GEOMETRY_FLAGS = BG_PROP_SCALE | BG_ROOT_ALIGN, |
1131 | |
1131 | |
1132 | tintSet = 1 << 5, |
1132 | BG_TINT_SET = 1 << 5, |
1133 | tintWholesome = 1 << 6, |
1133 | BG_TINT_BITAND = 1 << 6, |
1134 | tintFlags = tintNeeded | tintWholesome, |
1134 | BG_TINT_FLAGS = BG_NEEDS_TINT | BG_TINT_BITAND, |
1135 | |
1135 | |
1136 | HAS_RENDER = 1 << 7, |
1136 | BG_HAS_RENDER = 1 << 7, |
1137 | HAS_RENDER_CONV = 1 << 8, |
1137 | BG_HAS_RENDER_CONV = 1 << 8, |
1138 | CLIENT_RENDER = 1 << 9, |
1138 | BG_CLIENT_RENDER = 1 << 9, |
1139 | |
1139 | |
1140 | isTransparent = 1 << 10, |
1140 | BG_IS_TRANSPARENT = 1 << 10, |
1141 | hasChanged = 1 << 11, |
1141 | BG_NEEDS_REFRESH = 1 << 11, |
1142 | sizeSensitive = 1 << 12, |
1142 | BG_IS_SIZE_SENSITIVE = 1 << 12, |
1143 | }; |
1143 | }; |
1144 | |
1144 | |
1145 | unsigned int bg_flags; |
1145 | unsigned int bg_flags; |
1146 | |
1146 | |
1147 | # ifdef BG_IMAGE_FROM_FILE |
1147 | # ifdef BG_IMAGE_FROM_FILE |
… | |
… | |
1200 | bool bg_window_position_sensitive (); |
1200 | bool bg_window_position_sensitive (); |
1201 | |
1201 | |
1202 | bool bg_render (); |
1202 | bool bg_render (); |
1203 | void bg_invalidate () |
1203 | void bg_invalidate () |
1204 | { |
1204 | { |
1205 | bg_flags &= ~isValid; |
1205 | bg_flags &= ~BG_IS_VALID; |
1206 | } |
1206 | } |
1207 | #endif |
1207 | #endif |
1208 | #ifdef HAVE_AFTERIMAGE |
1208 | #ifdef HAVE_AFTERIMAGE |
1209 | ASImage *original_asim; |
1209 | ASImage *original_asim; |
1210 | ASVisual *asv; |
1210 | ASVisual *asv; |