summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2013-03-25 11:36:39 +0800
committerRichard Grenville <[email protected]>2013-03-25 11:36:39 +0800
commit47f7b4072200463557ff692d41bf621f6954604f (patch)
treeb4d5f4d84151cb6fb45bfceadecd0b038637185f /common.h
parente9ea554fa6f246cc17e578bb3af4c1f9847e57ad (diff)
downloadtdebase-47f7b4072200463557ff692d41bf621f6954604f.tar.gz
tdebase-47f7b4072200463557ff692d41bf621f6954604f.zip
Bug fix: GLX: Fix --inactive-dim & fix color inversion
- GLX backend: Fix broken --inactive-dim. - GLX backend: Fix bugs when inverting colors of windows. Thanks to madsy and neure for help. - GLX backend: Lift `glx_no_stencil` restriction from glx_init_blur(). It still probably won't work, but the user can try. - XRender backend: Use XRenderFillRectangles() instead of XRenderComposite() to do dimming.
Diffstat (limited to 'common.h')
-rw-r--r--common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/common.h b/common.h
index 249ef92e8..e2af50f08 100644
--- a/common.h
+++ b/common.h
@@ -878,9 +878,6 @@ typedef struct _win {
// Dim-related members
/// Whether the window is to be dimmed.
bool dim;
- /// Picture for dimming. Affected by user-specified inactive dim
- /// opacity and window opacity.
- Picture dim_alpha_pict;
/// Whether to invert window color.
bool invert_color;
@@ -1642,6 +1639,10 @@ glx_blur_dst(session_t *ps, int dx, int dy, int width, int height, float z,
GLfloat factor_center);
bool
+glx_dim_dst(session_t *ps, int dx, int dy, int width, int height, float z,
+ GLfloat factor);
+
+bool
glx_render(session_t *ps, const glx_texture_t *ptex,
int x, int y, int dx, int dy, int width, int height, int z,
double opacity, bool neg, XserverRegion reg_tgt);