summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwodor <wodor@wodor.org>2008-03-13 15:19:08 +0100
committerwodor <wodor@wodor.org>2008-03-13 15:19:08 +0100
commit6d9be08953c641d65edaf9be488eeddc1c789f3e (patch)
tree3852f1f9bc5b99c9d26b7726a01da1d690576f9d
parent1ef1164a06d23bb2760735a0dce42f07efa35d35 (diff)
downloadanaglyph-6d9be08953c641d65edaf9be488eeddc1c789f3e.tar.gz
anaglyph-6d9be08953c641d65edaf9be488eeddc1c789f3e.tar.bz2
add some window states
-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