Lines Matching refs:pWin
56 compCheckWindow(WindowPtr pWin, void *data) in compCheckWindow() argument
58 ScreenPtr pScreen = pWin->drawable.pScreen; in compCheckWindow()
59 PixmapPtr pWinPixmap = (*pScreen->GetWindowPixmap) (pWin); in compCheckWindow()
61 pWin->parent ? (*pScreen->GetWindowPixmap) (pWin->parent) : 0; in compCheckWindow()
64 if (!pWin->parent) { in compCheckWindow()
65 assert(pWin->redirectDraw == RedirectDrawNone); in compCheckWindow()
68 else if (pWin->redirectDraw != RedirectDrawNone) { in compCheckWindow()
149 compCheckRedirect(WindowPtr pWin) in compCheckRedirect() argument
151 CompWindowPtr cw = GetCompWindow(pWin); in compCheckRedirect()
152 CompScreenPtr cs = GetCompScreen(pWin->drawable.pScreen); in compCheckRedirect()
155 should = pWin->realized && (pWin->drawable.class != InputOnly) && in compCheckRedirect()
156 (cw != NULL) && (pWin->parent != NULL); in compCheckRedirect()
160 if (pWin == cs->pOverlayWin) { in compCheckRedirect()
165 if (should != (pWin->redirectDraw != RedirectDrawNone)) { in compCheckRedirect()
167 return compAllocPixmap(pWin); in compCheckRedirect()
169 ScreenPtr pScreen = pWin->drawable.pScreen; in compCheckRedirect()
170 PixmapPtr pPixmap = (*pScreen->GetWindowPixmap) (pWin); in compCheckRedirect()
172 compSetParentPixmap(pWin); in compCheckRedirect()
173 compRestoreWindow(pWin, pPixmap); in compCheckRedirect()
179 pWin->redirectDraw = RedirectDrawAutomatic; in compCheckRedirect()
181 pWin->redirectDraw = RedirectDrawManual; in compCheckRedirect()
190 WindowPtr pWin; /* overlay window */ in updateOverlayWindow() local
203 if ((pWin = cs->pOverlayWin) != NULL) { in updateOverlayWindow()
204 if ((pWin->drawable.width == w) && (pWin->drawable.height == h)) in updateOverlayWindow()
210 return ConfigureWindow(pWin, CWWidth | CWHeight, vlist, wClient(pWin)); in updateOverlayWindow()
219 compPositionWindow(WindowPtr pWin, int x, int y) in compPositionWindow() argument
221 ScreenPtr pScreen = pWin->drawable.pScreen; in compPositionWindow()
232 if ((pWin->redirectDraw != RedirectDrawNone) != in compPositionWindow()
233 (pWin->viewable && (GetCompWindow(pWin) != NULL))) in compPositionWindow()
236 if (pWin->redirectDraw != RedirectDrawNone) { in compPositionWindow()
237 PixmapPtr pPixmap = (*pScreen->GetWindowPixmap) (pWin); in compPositionWindow()
238 int bw = wBorderWidth(pWin); in compPositionWindow()
239 int nx = pWin->drawable.x - bw; in compPositionWindow()
240 int ny = pWin->drawable.y - bw; in compPositionWindow()
249 if (!(*pScreen->PositionWindow) (pWin, x, y)) in compPositionWindow()
253 compCheckTree(pWin->drawable.pScreen); in compPositionWindow()
260 compRealizeWindow(WindowPtr pWin) in compRealizeWindow() argument
262 ScreenPtr pScreen = pWin->drawable.pScreen; in compRealizeWindow()
267 compCheckRedirect(pWin); in compRealizeWindow()
268 if (!(*pScreen->RealizeWindow) (pWin)) in compRealizeWindow()
272 compCheckTree(pWin->drawable.pScreen); in compRealizeWindow()
277 compUnrealizeWindow(WindowPtr pWin) in compUnrealizeWindow() argument
279 ScreenPtr pScreen = pWin->drawable.pScreen; in compUnrealizeWindow()
284 compCheckRedirect(pWin); in compUnrealizeWindow()
285 if (!(*pScreen->UnrealizeWindow) (pWin)) in compUnrealizeWindow()
289 compCheckTree(pWin->drawable.pScreen); in compUnrealizeWindow()
299 compClipNotify(WindowPtr pWin, int dx, int dy) in compClipNotify() argument
301 ScreenPtr pScreen = pWin->drawable.pScreen; in compClipNotify()
303 CompWindowPtr cw = GetCompWindow(pWin); in compClipNotify()
306 if (cw->borderClipX != pWin->drawable.x || in compClipNotify()
307 cw->borderClipY != pWin->drawable.y) { in compClipNotify()
309 pWin->drawable.x - cw->borderClipX, in compClipNotify()
310 pWin->drawable.y - cw->borderClipY); in compClipNotify()
311 cw->borderClipX = pWin->drawable.x; in compClipNotify()
312 cw->borderClipY = pWin->drawable.y; in compClipNotify()
317 (*pScreen->ClipNotify) (pWin, dx, dy); in compClipNotify()
351 compImplicitRedirect(WindowPtr pWin, WindowPtr pParent) in compImplicitRedirect() argument
354 ScreenPtr pScreen = pWin->drawable.pScreen; in compImplicitRedirect()
355 XID winVisual = wVisual(pWin); in compImplicitRedirect()
370 compFreeOldPixmap(WindowPtr pWin) in compFreeOldPixmap() argument
372 ScreenPtr pScreen = pWin->drawable.pScreen; in compFreeOldPixmap()
374 if (pWin->redirectDraw != RedirectDrawNone) { in compFreeOldPixmap()
375 CompWindowPtr cw = GetCompWindow(pWin); in compFreeOldPixmap()
385 compMoveWindow(WindowPtr pWin, int x, int y, WindowPtr pSib, VTKind kind) in compMoveWindow() argument
387 ScreenPtr pScreen = pWin->drawable.pScreen; in compMoveWindow()
391 (*pScreen->MoveWindow) (pWin, x, y, pSib, kind); in compMoveWindow()
395 compFreeOldPixmap(pWin); in compMoveWindow()
400 compResizeWindow(WindowPtr pWin, int x, int y, in compResizeWindow() argument
403 ScreenPtr pScreen = pWin->drawable.pScreen; in compResizeWindow()
407 (*pScreen->ResizeWindow) (pWin, x, y, w, h, pSib); in compResizeWindow()
411 compFreeOldPixmap(pWin); in compResizeWindow()
412 compCheckTree(pWin->drawable.pScreen); in compResizeWindow()
416 compChangeBorderWidth(WindowPtr pWin, unsigned int bw) in compChangeBorderWidth() argument
418 ScreenPtr pScreen = pWin->drawable.pScreen; in compChangeBorderWidth()
422 (*pScreen->ChangeBorderWidth) (pWin, bw); in compChangeBorderWidth()
426 compFreeOldPixmap(pWin); in compChangeBorderWidth()
427 compCheckTree(pWin->drawable.pScreen); in compChangeBorderWidth()
431 compReparentWindow(WindowPtr pWin, WindowPtr pPriorParent) in compReparentWindow() argument
433 ScreenPtr pScreen = pWin->drawable.pScreen; in compReparentWindow()
441 if (compImplicitRedirect(pWin, pPriorParent)) in compReparentWindow()
442 compUnredirectWindow(serverClient, pWin, CompositeRedirectAutomatic); in compReparentWindow()
446 compUnredirectOneSubwindow(pPriorParent, pWin); in compReparentWindow()
447 compRedirectOneSubwindow(pWin->parent, pWin); in compReparentWindow()
451 if (compImplicitRedirect(pWin, pWin->parent)) in compReparentWindow()
452 compRedirectWindow(serverClient, pWin, CompositeRedirectAutomatic); in compReparentWindow()
458 compCheckRedirect(pWin); in compReparentWindow()
463 if (pWin->parent && pWin->redirectDraw == RedirectDrawNone) in compReparentWindow()
464 compSetPixmap(pWin, (*pScreen->GetWindowPixmap) (pWin->parent), in compReparentWindow()
465 pWin->borderWidth); in compReparentWindow()
470 (*pScreen->ReparentWindow) (pWin, pPriorParent); in compReparentWindow()
474 cw = GetCompWindow(pWin); in compReparentWindow()
475 if (pWin->damagedDescendants || (cw && cw->damaged)) in compReparentWindow()
476 compMarkAncestors(pWin); in compReparentWindow()
478 compCheckTree(pWin->drawable.pScreen); in compReparentWindow()
482 compCopyWindow(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc) in compCopyWindow() argument
484 ScreenPtr pScreen = pWin->drawable.pScreen; in compCopyWindow()
488 if (pWin->redirectDraw != RedirectDrawNone) { in compCopyWindow()
489 PixmapPtr pPixmap = (*pScreen->GetWindowPixmap) (pWin); in compCopyWindow()
490 CompWindowPtr cw = GetCompWindow(pWin); in compCopyWindow()
502 dx = ptOldOrg.x - pWin->drawable.x; in compCopyWindow()
503 dy = ptOldOrg.y - pWin->drawable.y; in compCopyWindow()
508 RegionIntersect(&rgnDst, &pWin->borderClip, prgnSrc); in compCopyWindow()
542 if (ptOldOrg.x != pWin->drawable.x || ptOldOrg.y != pWin->drawable.y) { in compCopyWindow()
545 (*pScreen->CopyWindow) (pWin, ptOldOrg, prgnSrc); in compCopyWindow()
553 pWin->drawable.x - ptOldOrg.x, in compCopyWindow()
554 pWin->drawable.y - ptOldOrg.y); in compCopyWindow()
555 DamageDamageRegion(&pWin->drawable, prgnSrc); in compCopyWindow()
559 compCheckTree(pWin->drawable.pScreen); in compCopyWindow()
563 compCreateWindow(WindowPtr pWin) in compCreateWindow() argument
565 ScreenPtr pScreen = pWin->drawable.pScreen; in compCreateWindow()
570 ret = (*pScreen->CreateWindow) (pWin); in compCreateWindow()
571 if (pWin->parent && ret) { in compCreateWindow()
572 CompSubwindowsPtr csw = GetCompSubwindows(pWin->parent); in compCreateWindow()
574 PixmapPtr parent_pixmap = (*pScreen->GetWindowPixmap)(pWin->parent); in compCreateWindow()
575 PixmapPtr window_pixmap = (*pScreen->GetWindowPixmap)(pWin); in compCreateWindow()
578 (*pScreen->SetWindowPixmap) (pWin, parent_pixmap); in compCreateWindow()
582 pWin, ccw->update); in compCreateWindow()
583 if (compImplicitRedirect(pWin, pWin->parent)) in compCreateWindow()
584 compRedirectWindow(serverClient, pWin, CompositeRedirectAutomatic); in compCreateWindow()
588 compCheckTree(pWin->drawable.pScreen); in compCreateWindow()
593 compDestroyWindow(WindowPtr pWin) in compDestroyWindow() argument
595 ScreenPtr pScreen = pWin->drawable.pScreen; in compDestroyWindow()
602 while ((cw = GetCompWindow(pWin))) in compDestroyWindow()
604 while ((csw = GetCompSubwindows(pWin))) in compDestroyWindow()
607 if (pWin->redirectDraw != RedirectDrawNone) { in compDestroyWindow()
608 PixmapPtr pPixmap = (*pScreen->GetWindowPixmap) (pWin); in compDestroyWindow()
610 compSetParentPixmap(pWin); in compDestroyWindow()
613 ret = (*pScreen->DestroyWindow) (pWin); in compDestroyWindow()
621 compSetRedirectBorderClip(WindowPtr pWin, RegionPtr pRegion) in compSetRedirectBorderClip() argument
623 CompWindowPtr cw = GetCompWindow(pWin); in compSetRedirectBorderClip()
631 pWin->drawable.x - cw->borderClipX, in compSetRedirectBorderClip()
632 pWin->drawable.y - cw->borderClipY); in compSetRedirectBorderClip()
640 DamageDamageRegion(&pWin->drawable, &damage); in compSetRedirectBorderClip()
646 cw->borderClipX = pWin->drawable.x; in compSetRedirectBorderClip()
647 cw->borderClipY = pWin->drawable.y; in compSetRedirectBorderClip()
651 compGetRedirectBorderClip(WindowPtr pWin) in compGetRedirectBorderClip() argument
653 CompWindowPtr cw = GetCompWindow(pWin); in compGetRedirectBorderClip()
659 compWindowUpdateAutomatic(WindowPtr pWin) in compWindowUpdateAutomatic() argument
661 CompWindowPtr cw = GetCompWindow(pWin); in compWindowUpdateAutomatic()
662 ScreenPtr pScreen = pWin->drawable.pScreen; in compWindowUpdateAutomatic()
663 WindowPtr pParent = pWin->parent; in compWindowUpdateAutomatic()
664 PixmapPtr pSrcPixmap = (*pScreen->GetWindowPixmap) (pWin); in compWindowUpdateAutomatic()
665 PictFormatPtr pSrcFormat = PictureWindowFormat(pWin); in compWindowUpdateAutomatic()
666 PictFormatPtr pDstFormat = PictureWindowFormat(pWin->parent); in compWindowUpdateAutomatic()
685 RegionTranslate(pRegion, pWin->drawable.x, pWin->drawable.y); in compWindowUpdateAutomatic()
721 compPaintWindowToParent(WindowPtr pWin) in compPaintWindowToParent() argument
723 compPaintChildrenToWindow(pWin); in compPaintWindowToParent()
725 if (pWin->redirectDraw != RedirectDrawNone) { in compPaintWindowToParent()
726 CompWindowPtr cw = GetCompWindow(pWin); in compPaintWindowToParent()
729 compWindowUpdateAutomatic(pWin); in compPaintWindowToParent()
736 compPaintChildrenToWindow(WindowPtr pWin) in compPaintChildrenToWindow() argument
740 if (!pWin->damagedDescendants) in compPaintChildrenToWindow()
743 for (pChild = pWin->lastChild; pChild; pChild = pChild->prevSib) in compPaintChildrenToWindow()
746 pWin->damagedDescendants = FALSE; in compPaintChildrenToWindow()
750 CompositeRealChildHead(WindowPtr pWin) in CompositeRealChildHead() argument
755 if (!pWin->parent && in CompositeRealChildHead()
757 (HasSaverWindow(pWin->drawable.pScreen))) { in CompositeRealChildHead()
760 pChildBefore = pWin->firstChild; in CompositeRealChildHead()
766 pChild = pWin->firstChild; in CompositeRealChildHead()
773 cs = GetCompScreen(pWin->drawable.pScreen); in CompositeRealChildHead()
783 compConfigNotify(WindowPtr pWin, int x, int y, int w, int h, in compConfigNotify() argument
786 ScreenPtr pScreen = pWin->drawable.pScreen; in compConfigNotify()
789 WindowPtr pParent = pWin->parent; in compConfigNotify()
795 ret = (*pScreen->ConfigNotify) (pWin, x, y, w, h, bw, pSib); in compConfigNotify()
803 if (pWin->redirectDraw == RedirectDrawNone) in compConfigNotify()
810 alloc_ret = compReallocPixmap(pWin, draw_x, draw_y, w, h, bw); in compConfigNotify()