summaryrefslogtreecommitdiff
path: root/anaglyph.c
diff options
context:
space:
mode:
Diffstat (limited to 'anaglyph.c')
-rw-r--r--anaglyph.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/anaglyph.c b/anaglyph.c
index c161a30..38ee2a4 100644
--- a/anaglyph.c
+++ b/anaglyph.c
@@ -199,6 +199,10 @@ static Bool anaglyphDrawWindow(CompWindow * w,
glColorMask(GL_FALSE,GL_TRUE,GL_TRUE,GL_FALSE);
if (w->type & CompWindowTypeDesktopMask) //desktop
matrixTranslate (&sTransform, offset*desktopOffset, 0.0f, 0.0f);
+ else if (w->state & CompWindowStateShadedMask)
+ matrixTranslate (&sTransform, 0.0f, 0.0f, 0.0f);
+ else if ((w->state & CompWindowStateMaximizedHorzMask) || (w->state & CompWindowStateMaximizedVertMask ))
+ matrixTranslate (&sTransform, -offset*3.5, 0.0f, 0.0f);
else if (w->type & CompWindowTypeDockMask) // dock
matrixTranslate (&sTransform, 0.0f, 0.0f, 0.0f);
else if (w->state & CompWindowStateStickyMask) // sticky
@@ -212,11 +216,15 @@ static Bool anaglyphDrawWindow(CompWindow * w,
else //other windows
matrixTranslate (&sTransform, -offset, 0.0f, 0.0f);
status = (*s->paintWindow) (w, &wa, &sTransform, region, mask);
-
+
//RED
glColorMask(GL_TRUE,GL_FALSE,GL_FALSE,GL_FALSE);
if (w->type & CompWindowTypeDesktopMask) //desktop
matrixTranslate (&sTransform, -offset*2.0*desktopOffset, 0.0f, 0.0f);
+ else if (w->state & CompWindowStateShadedMask)
+ matrixTranslate (&sTransform, 0.0f, 0.0f, 0.0f);
+ else if ((w->state & CompWindowStateMaximizedHorzMask) || (w->state & CompWindowStateMaximizedVertMask ))
+ matrixTranslate (&sTransform, offset*3.5, 0.0f, 0.0f);
else if (w->type & CompWindowTypeDockMask)// dock
matrixTranslate (&sTransform, 0.0f, 0.0f, 0.0f);
else if (w->state & CompWindowStateStickyMask) // sticky