Lines Matching refs:cw
82 CompWindowPtr cw = GetCompWindow(pWin); in compReportDamage() local
88 cw->damaged = TRUE; in compReportDamage()
97 CompWindowPtr cw = GetCompWindow(pWin); in compDestroyDamage() local
99 cw->damage = 0; in compDestroyDamage()
136 CompWindowPtr cw = GetCompWindow(pWin); in compRedirectWindow() local
152 if (cw && update == CompositeRedirectManual) in compRedirectWindow()
153 for (ccw = cw->clients; ccw; ccw = ccw->next) in compRedirectWindow()
170 if (!cw) { in compRedirectWindow()
171 cw = malloc(sizeof(CompWindowRec)); in compRedirectWindow()
172 if (!cw) { in compRedirectWindow()
176 cw->damage = DamageCreate(compReportDamage, in compRedirectWindow()
180 if (!cw->damage) { in compRedirectWindow()
182 free(cw); in compRedirectWindow()
188 RegionNull(&cw->borderClip); in compRedirectWindow()
189 cw->update = CompositeRedirectAutomatic; in compRedirectWindow()
190 cw->clients = 0; in compRedirectWindow()
191 cw->oldx = COMP_ORIGIN_INVALID; in compRedirectWindow()
192 cw->oldy = COMP_ORIGIN_INVALID; in compRedirectWindow()
193 cw->damageRegistered = FALSE; in compRedirectWindow()
194 cw->damaged = FALSE; in compRedirectWindow()
195 cw->pOldPixmap = NullPixmap; in compRedirectWindow()
196 dixSetPrivate(&pWin->devPrivates, CompWindowPrivateKey, cw); in compRedirectWindow()
198 ccw->next = cw->clients; in compRedirectWindow()
199 cw->clients = ccw; in compRedirectWindow()
206 if (cw->damageRegistered) { in compRedirectWindow()
207 DamageUnregister(cw->damage); in compRedirectWindow()
208 cw->damageRegistered = FALSE; in compRedirectWindow()
210 cw->update = CompositeRedirectManual; in compRedirectWindow()
212 else if (cw->update == CompositeRedirectAutomatic && !cw->damageRegistered) { in compRedirectWindow()
263 CompWindowPtr cw = GetCompWindow(pWin); in compFreeClientWindow() local
269 if (!cw) in compFreeClientWindow()
271 for (prev = &cw->clients; (ccw = *prev); prev = &ccw->next) { in compFreeClientWindow()
275 cw->update = CompositeRedirectAutomatic; in compFreeClientWindow()
280 if (!cw->clients) { in compFreeClientWindow()
288 if (cw->damage) in compFreeClientWindow()
289 DamageDestroy(cw->damage); in compFreeClientWindow()
291 RegionUninit(&cw->borderClip); in compFreeClientWindow()
294 free(cw); in compFreeClientWindow()
296 else if (cw->update == CompositeRedirectAutomatic && in compFreeClientWindow()
297 !cw->damageRegistered && pWin->redirectDraw != RedirectDrawNone) { in compFreeClientWindow()
300 DamageRegister(&pWin->drawable, cw->damage); in compFreeClientWindow()
301 cw->damageRegistered = TRUE; in compFreeClientWindow()
322 CompWindowPtr cw = GetCompWindow(pWin); in compUnredirectWindow() local
325 if (!cw) in compUnredirectWindow()
328 for (ccw = cw->clients; ccw; ccw = ccw->next) in compUnredirectWindow()
605 CompWindowPtr cw = GetCompWindow(pWin); in compAllocPixmap() local
609 if (cw->update == CompositeRedirectAutomatic) in compAllocPixmap()
615 cw->oldx = COMP_ORIGIN_INVALID; in compAllocPixmap()
616 cw->oldy = COMP_ORIGIN_INVALID; in compAllocPixmap()
617 cw->damageRegistered = FALSE; in compAllocPixmap()
618 if (cw->update == CompositeRedirectAutomatic) { in compAllocPixmap()
619 DamageRegister(&pWin->drawable, cw->damage); in compAllocPixmap()
620 cw->damageRegistered = TRUE; in compAllocPixmap()
624 RegionUninit(&cw->borderClip); in compAllocPixmap()
625 RegionCopy(&cw->borderClip, &pWin->borderClip); in compAllocPixmap()
626 cw->borderClipX = pWin->drawable.x; in compAllocPixmap()
627 cw->borderClipY = pWin->drawable.y; in compAllocPixmap()
637 CompWindowPtr cw = GetCompWindow(pWin); in compSetParentPixmap() local
639 if (cw->damageRegistered) { in compSetParentPixmap()
640 DamageUnregister(cw->damage); in compSetParentPixmap()
641 cw->damageRegistered = FALSE; in compSetParentPixmap()
642 DamageEmpty(cw->damage); in compSetParentPixmap()
650 RegionCopy(&pWin->borderClip, &cw->borderClip); in compSetParentPixmap()
668 CompWindowPtr cw = GetCompWindow(pWin); in compReallocPixmap() local
672 assert(cw && pWin->redirectDraw != RedirectDrawNone); in compReallocPixmap()
673 cw->oldx = pOld->screen_x; in compReallocPixmap()
674 cw->oldy = pOld->screen_y; in compReallocPixmap()
683 cw->pOldPixmap = pOld; in compReallocPixmap()
688 cw->pOldPixmap = 0; in compReallocPixmap()