Lines Matching defs:cw

82     CompWindowPtr cw = GetCompWindow(pWin);
88 cw->damaged = TRUE;
97 CompWindowPtr cw = GetCompWindow(pWin);
99 cw->damage = 0;
100 cw->damaged = 0;
101 cw->damageRegistered = 0;
138 CompWindowPtr cw = GetCompWindow(pWin);
155 if (cw && update == CompositeRedirectManual)
156 for (ccw = cw->clients; ccw; ccw = ccw->next)
173 if (!cw) {
174 cw = malloc(sizeof(CompWindowRec));
175 if (!cw) {
179 cw->damage = DamageCreate(compReportDamage,
183 if (!cw->damage) {
185 free(cw);
191 RegionNull(&cw->borderClip);
192 cw->update = CompositeRedirectAutomatic;
193 cw->clients = 0;
194 cw->oldx = COMP_ORIGIN_INVALID;
195 cw->oldy = COMP_ORIGIN_INVALID;
196 cw->damageRegistered = FALSE;
197 cw->damaged = FALSE;
198 cw->pOldPixmap = NullPixmap;
199 dixSetPrivate(&pWin->devPrivates, CompWindowPrivateKey, cw);
201 ccw->next = cw->clients;
202 cw->clients = ccw;
209 if (cw->damageRegistered) {
210 DamageUnregister(cw->damage);
211 cw->damageRegistered = FALSE;
213 cw->update = CompositeRedirectManual;
215 else if (cw->update == CompositeRedirectAutomatic && !cw->damageRegistered) {
266 CompWindowPtr cw = GetCompWindow(pWin);
272 if (!cw)
274 for (prev = &cw->clients; (ccw = *prev); prev = &ccw->next) {
278 cw->update = CompositeRedirectAutomatic;
283 if (!cw->clients) {
291 if (cw->damage)
292 DamageDestroy(cw->damage);
294 RegionUninit(&cw->borderClip);
297 free(cw);
299 else if (cw->update == CompositeRedirectAutomatic &&
300 !cw->damageRegistered && pWin->redirectDraw != RedirectDrawNone) {
303 DamageRegister(&pWin->drawable, cw->damage);
304 cw->damageRegistered = TRUE;
325 CompWindowPtr cw = GetCompWindow(pWin);
328 if (!cw)
331 for (ccw = cw->clients; ccw; ccw = ccw->next)
608 CompWindowPtr cw = GetCompWindow(pWin);
615 if (cw->update == CompositeRedirectAutomatic)
621 cw->oldx = COMP_ORIGIN_INVALID;
622 cw->oldy = COMP_ORIGIN_INVALID;
623 cw->damageRegistered = FALSE;
624 if (cw->update == CompositeRedirectAutomatic) {
625 DamageRegister(&pWin->drawable, cw->damage);
626 cw->damageRegistered = TRUE;
632 RegionUninit(&cw->borderClip);
633 RegionCopy(&cw->borderClip, &pWin->borderClip);
634 cw->borderClipX = pWin->drawable.x;
635 cw->borderClipY = pWin->drawable.y;
645 CompWindowPtr cw = GetCompWindow(pWin);
647 if (cw->damageRegistered) {
648 DamageUnregister(cw->damage);
649 cw->damageRegistered = FALSE;
650 DamageEmpty(cw->damage);
658 RegionCopy(&pWin->borderClip, &cw->borderClip);
667 * old pixmap in cw->pOldPixmap so bits can be recovered
676 CompWindowPtr cw = GetCompWindow(pWin);
680 assert(cw);
682 cw->oldx = pOld->screen_x;
683 cw->oldy = pOld->screen_y;
692 cw->pOldPixmap = pOld;
697 cw->pOldPixmap = 0;