composite: Remove unnecessary variable.
We know that there is damage if the dynamic block handler is registered. Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
c038b8b28e
commit
ed8db09b4b
|
@ -50,14 +50,8 @@
|
|||
static void
|
||||
compScreenUpdate (ScreenPtr pScreen)
|
||||
{
|
||||
CompScreenPtr cs = GetCompScreen (pScreen);
|
||||
|
||||
compCheckTree (pScreen);
|
||||
if (cs->damaged)
|
||||
{
|
||||
compWindowUpdate (pScreen->root);
|
||||
cs->damaged = FALSE;
|
||||
}
|
||||
compWindowUpdate (pScreen->root);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -85,11 +79,9 @@ compReportDamage (DamagePtr pDamage, RegionPtr pRegion, void *closure)
|
|||
CompScreenPtr cs = GetCompScreen (pScreen);
|
||||
CompWindowPtr cw = GetCompWindow (pWin);
|
||||
|
||||
if (!cs->damaged) {
|
||||
if (!cs->BlockHandler) {
|
||||
cs->BlockHandler = pScreen->BlockHandler;
|
||||
pScreen->BlockHandler = compBlockHandler;
|
||||
|
||||
cs->damaged = TRUE;
|
||||
}
|
||||
cw->damaged = TRUE;
|
||||
}
|
||||
|
|
|
@ -301,7 +301,6 @@ compScreenInit (ScreenPtr pScreen)
|
|||
if (!cs)
|
||||
return FALSE;
|
||||
|
||||
cs->damaged = FALSE;
|
||||
cs->overlayWid = FakeClientID(0);
|
||||
cs->pOverlayWin = NULL;
|
||||
cs->pOverlayClients = NULL;
|
||||
|
|
|
@ -152,7 +152,6 @@ typedef struct _CompScreen {
|
|||
|
||||
ScreenBlockHandlerProcPtr BlockHandler;
|
||||
CloseScreenProcPtr CloseScreen;
|
||||
Bool damaged;
|
||||
int numAlternateVisuals;
|
||||
VisualID *alternateVisuals;
|
||||
|
||||
|
|
Loading…
Reference in New Issue