… | |
… | |
28 | geometryFlags = propScale | rootAlign, |
28 | geometryFlags = propScale | rootAlign, |
29 | |
29 | |
30 | tintSet = 1 << 8, |
30 | tintSet = 1 << 8, |
31 | tintNeeded = 1 << 9, |
31 | tintNeeded = 1 << 9, |
32 | tintWholesome = 1 << 10, |
32 | tintWholesome = 1 << 10, |
33 | tintFlags = tintSet | tintNeeded | tintWholesome, |
33 | tintFlags = tintNeeded | tintWholesome, |
34 | |
34 | |
35 | blurNeeded = 1 << 11, |
35 | blurNeeded = 1 << 11, |
36 | |
36 | |
37 | HAS_RENDER = 1 << 12, |
37 | HAS_RENDER = 1 << 12, |
38 | HAS_RENDER_CONV = 1 << 13, |
38 | HAS_RENDER_CONV = 1 << 13, |
… | |
… | |
107 | bool tint_pixmap (Pixmap pixmap, Visual *visual, int width, int height); |
107 | bool tint_pixmap (Pixmap pixmap, Visual *visual, int width, int height); |
108 | void set_root_pixmap (); |
108 | void set_root_pixmap (); |
109 | |
109 | |
110 | unsigned long make_transparency_pixmap ();/* returns combination of the transpTransformations flags */ |
110 | unsigned long make_transparency_pixmap ();/* returns combination of the transpTransformations flags */ |
111 | # endif |
111 | # endif |
112 | double invalid_since, valid_since; |
112 | double valid_since; |
113 | |
113 | |
114 | Pixmap pixmap; |
114 | Pixmap pixmap; |
115 | unsigned int pmap_width, pmap_height; |
115 | unsigned int pmap_width, pmap_height; |
116 | |
116 | |
117 | int target_x; |
117 | int target_x; |
118 | int target_y; |
118 | int target_y; |
119 | bool set_position (int x, int y); |
119 | bool set_position (int x, int y); |
120 | bool window_size_sensitive (); |
120 | bool window_size_sensitive (); |
121 | bool window_position_sensitive (); |
121 | bool window_position_sensitive (); |
122 | |
122 | |
123 | void apply (); |
|
|
124 | bool render (); |
123 | bool render (); |
125 | void invalidate () |
124 | void invalidate () |
126 | { |
125 | { |
127 | if (!(flags & isInvalid)) |
|
|
128 | { |
|
|
129 | flags |= isInvalid; |
126 | flags |= isInvalid; |
130 | invalid_since = ev::now (); |
|
|
131 | } |
|
|
132 | } |
127 | } |
133 | }; |
128 | }; |
134 | #else |
129 | #else |
135 | # undef HAVE_BG_PIXMAP |
130 | # undef HAVE_BG_PIXMAP |
136 | #endif |
131 | #endif |