summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoi Cohen <roico@roico-desktop.(none)>2007-06-27 00:10:45 +0300
committerRoi Cohen <roico@roico-desktop.(none)>2007-06-27 00:10:45 +0300
commitc5bcecbe0cb492b213c178ce139d13e8a5c4589a (patch)
tree8cdcf3a7a1e9179b0134d5ef66a62d6cb1499cd1
parentb1b8274faeaab3e473bdc636794e438f56bb21b2 (diff)
download3d-c5bcecbe0cb492b213c178ce139d13e8a5c4589a.tar.gz
3d-c5bcecbe0cb492b213c178ce139d13e8a5c4589a.tar.bz2
get rid of lastBTF
-rw-r--r--3d.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/3d.c b/3d.c
index 52cd9ed..18a7fe3 100644
--- a/3d.c
+++ b/3d.c
@@ -83,7 +83,6 @@ typedef struct _tdScreen
InitWindowWalkerProc initWindowWalker;
CompWindow* firstFTB;
- CompWindow* lastBTF;
PaintWindowProc paintWindow;
@@ -747,7 +746,6 @@ tdPaintTransformedOutput(CompScreen * s,
CompWindow* now;
CompWindow* firstFTB = NULL;
- CompWindow* lastBTF = NULL;
tds->reorderWindowPainting = FALSE;
@@ -772,8 +770,6 @@ tdPaintTransformedOutput(CompScreen * s,
if (tdw->ftb)
firstFTB = now;
- else
- lastBTF = now;
}
else
tdw->ftb = TRUE;
@@ -781,7 +777,6 @@ tdPaintTransformedOutput(CompScreen * s,
}
tds->firstFTB = firstFTB;
- tds->lastBTF = lastBTF;
UNWRAP(tds, s, paintTransformedOutput);
(*s->paintTransformedOutput) (s, sAttrib, transform, region, output, mask);
@@ -869,7 +864,7 @@ tdWalkFirst (CompScreen *s)
{
TD_SCREEN(s);
- if (tds->lastBTF == NULL)
+ if (tds->firstFTB == s->windows)
return s->reverseWindows;
return s->windows;
}
@@ -897,7 +892,7 @@ tdWalkNext (CompWindow *w)
return w->prev;
}
- if (w == tds->lastBTF && w != w->screen->reverseWindows)
+ if (w->next == tds->firstFTB && tds->firstFTB)
return w->screen->reverseWindows;
return w->next;
}
@@ -911,7 +906,7 @@ tdWalkPrev (CompWindow *w)
if (tdw->ftb)
{
if (w == w->screen->reverseWindows)
- return tds->lastBTF;
+ return tds->firstFTB->prev;
return w->next;
}
@@ -1084,9 +1079,6 @@ static Bool tdInitScreen(CompPlugin * p, CompScreen * s)
tds->currentDifferentResolutions = differentResolutions(s);
tds->xMove = 0.0f;
-
- tds->firstFTB = NULL;
- tds->lastBTF = NULL;
s->privates[tdd->screenPrivateIndex].ptr = tds;