Lines Matching refs:pWin
45 xnestFindWindowMatch(WindowPtr pWin, void *ptr) in xnestFindWindowMatch() argument
49 if (wm->window == xnestWindow(pWin)) { in xnestFindWindowMatch()
50 wm->pWin = pWin; in xnestFindWindowMatch()
63 wm.pWin = NullWindow; in xnestWindowPtr()
68 if (wm.pWin) in xnestWindowPtr()
72 return wm.pWin; in xnestWindowPtr()
76 xnestCreateWindow(WindowPtr pWin) in xnestCreateWindow() argument
83 if (pWin->drawable.class == InputOnly) { in xnestCreateWindow()
92 if (pWin->parent) { in xnestCreateWindow()
93 if (pWin->optional && in xnestCreateWindow()
94 pWin->optional->visual != wVisual(pWin->parent)) { in xnestCreateWindow()
96 xnestVisualFromID(pWin->drawable.pScreen, wVisual(pWin)); in xnestCreateWindow()
98 if (pWin->optional->colormap) { in xnestCreateWindow()
99 dixLookupResourceByType((void **) &pCmap, wColormap(pWin), in xnestCreateWindow()
111 visual = xnestVisualFromID(pWin->drawable.pScreen, wVisual(pWin)); in xnestCreateWindow()
112 dixLookupResourceByType((void **) &pCmap, wColormap(pWin), in xnestCreateWindow()
119 xnestWindowPriv(pWin)->window = XCreateWindow(xnestDisplay, in xnestCreateWindow()
120 xnestWindowParent(pWin), in xnestCreateWindow()
121 pWin->origin.x - in xnestCreateWindow()
122 wBorderWidth(pWin), in xnestCreateWindow()
123 pWin->origin.y - in xnestCreateWindow()
124 wBorderWidth(pWin), in xnestCreateWindow()
125 pWin->drawable.width, in xnestCreateWindow()
126 pWin->drawable.height, in xnestCreateWindow()
127 pWin->borderWidth, in xnestCreateWindow()
128 pWin->drawable.depth, in xnestCreateWindow()
129 pWin->drawable.class, in xnestCreateWindow()
131 xnestWindowPriv(pWin)->parent = xnestWindowParent(pWin); in xnestCreateWindow()
132 xnestWindowPriv(pWin)->x = pWin->origin.x - wBorderWidth(pWin); in xnestCreateWindow()
133 xnestWindowPriv(pWin)->y = pWin->origin.y - wBorderWidth(pWin); in xnestCreateWindow()
134 xnestWindowPriv(pWin)->width = pWin->drawable.width; in xnestCreateWindow()
135 xnestWindowPriv(pWin)->height = pWin->drawable.height; in xnestCreateWindow()
136 xnestWindowPriv(pWin)->border_width = pWin->borderWidth; in xnestCreateWindow()
137 xnestWindowPriv(pWin)->sibling_above = None; in xnestCreateWindow()
138 if (pWin->nextSib) in xnestCreateWindow()
139 xnestWindowPriv(pWin->nextSib)->sibling_above = xnestWindow(pWin); in xnestCreateWindow()
140 xnestWindowPriv(pWin)->bounding_shape = RegionCreate(NULL, 1); in xnestCreateWindow()
141 xnestWindowPriv(pWin)->clip_shape = RegionCreate(NULL, 1); in xnestCreateWindow()
143 if (!pWin->parent) /* only the root window will have the right colormap */ in xnestCreateWindow()
144 xnestSetInstalledColormapWindows(pWin->drawable.pScreen); in xnestCreateWindow()
150 xnestDestroyWindow(WindowPtr pWin) in xnestDestroyWindow() argument
152 if (pWin->nextSib) in xnestDestroyWindow()
153 xnestWindowPriv(pWin->nextSib)->sibling_above = in xnestDestroyWindow()
154 xnestWindowPriv(pWin)->sibling_above; in xnestDestroyWindow()
155 RegionDestroy(xnestWindowPriv(pWin)->bounding_shape); in xnestDestroyWindow()
156 RegionDestroy(xnestWindowPriv(pWin)->clip_shape); in xnestDestroyWindow()
157 XDestroyWindow(xnestDisplay, xnestWindow(pWin)); in xnestDestroyWindow()
158 xnestWindowPriv(pWin)->window = None; in xnestDestroyWindow()
160 if (pWin->optional && pWin->optional->colormap && pWin->parent) in xnestDestroyWindow()
161 xnestSetInstalledColormapWindows(pWin->drawable.pScreen); in xnestDestroyWindow()
167 xnestPositionWindow(WindowPtr pWin, int x, int y) in xnestPositionWindow() argument
169 xnestConfigureWindow(pWin, in xnestPositionWindow()
177 xnestConfigureWindow(WindowPtr pWin, unsigned int mask) in xnestConfigureWindow() argument
183 xnestWindowPriv(pWin)->parent != xnestWindowParent(pWin)) { in xnestConfigureWindow()
184 XReparentWindow(xnestDisplay, xnestWindow(pWin), in xnestConfigureWindow()
185 xnestWindowParent(pWin), in xnestConfigureWindow()
186 pWin->origin.x - wBorderWidth(pWin), in xnestConfigureWindow()
187 pWin->origin.y - wBorderWidth(pWin)); in xnestConfigureWindow()
188 xnestWindowPriv(pWin)->parent = xnestWindowParent(pWin); in xnestConfigureWindow()
189 xnestWindowPriv(pWin)->x = pWin->origin.x - wBorderWidth(pWin); in xnestConfigureWindow()
190 xnestWindowPriv(pWin)->y = pWin->origin.y - wBorderWidth(pWin); in xnestConfigureWindow()
191 xnestWindowPriv(pWin)->sibling_above = None; in xnestConfigureWindow()
192 if (pWin->nextSib) in xnestConfigureWindow()
193 xnestWindowPriv(pWin->nextSib)->sibling_above = xnestWindow(pWin); in xnestConfigureWindow()
199 xnestWindowPriv(pWin)->x != pWin->origin.x - wBorderWidth(pWin)) { in xnestConfigureWindow()
202 xnestWindowPriv(pWin)->x = pWin->origin.x - wBorderWidth(pWin); in xnestConfigureWindow()
206 xnestWindowPriv(pWin)->y != pWin->origin.y - wBorderWidth(pWin)) { in xnestConfigureWindow()
209 xnestWindowPriv(pWin)->y = pWin->origin.y - wBorderWidth(pWin); in xnestConfigureWindow()
212 if (mask & CWWidth && xnestWindowPriv(pWin)->width != pWin->drawable.width) { in xnestConfigureWindow()
214 values.width = xnestWindowPriv(pWin)->width = pWin->drawable.width; in xnestConfigureWindow()
218 xnestWindowPriv(pWin)->height != pWin->drawable.height) { in xnestConfigureWindow()
220 values.height = xnestWindowPriv(pWin)->height = pWin->drawable.height; in xnestConfigureWindow()
224 xnestWindowPriv(pWin)->border_width != pWin->borderWidth) { in xnestConfigureWindow()
227 xnestWindowPriv(pWin)->border_width = pWin->borderWidth; in xnestConfigureWindow()
231 XConfigureWindow(xnestDisplay, xnestWindow(pWin), valuemask, &values); in xnestConfigureWindow()
234 xnestWindowPriv(pWin)->sibling_above != xnestWindowSiblingAbove(pWin)) { in xnestConfigureWindow()
238 for (pSib = pWin; pSib->prevSib != NullWindow; pSib = pSib->prevSib); in xnestConfigureWindow()
260 xnestChangeWindowAttributes(WindowPtr pWin, unsigned long mask) in xnestChangeWindowAttributes() argument
265 switch (pWin->backgroundState) { in xnestChangeWindowAttributes()
275 attributes.background_pixmap = xnestPixmap(pWin->background.pixmap); in xnestChangeWindowAttributes()
284 if (pWin->backgroundState == BackgroundPixel) in xnestChangeWindowAttributes()
285 attributes.background_pixel = xnestPixel(pWin->background.pixel); in xnestChangeWindowAttributes()
291 if (pWin->borderIsPixel) in xnestChangeWindowAttributes()
294 attributes.border_pixmap = xnestPixmap(pWin->border.pixmap); in xnestChangeWindowAttributes()
298 if (pWin->borderIsPixel) in xnestChangeWindowAttributes()
299 attributes.border_pixel = xnestPixel(pWin->border.pixel); in xnestChangeWindowAttributes()
305 attributes.bit_gravity = pWin->bitGravity; in xnestChangeWindowAttributes()
320 attributes.override_redirect = pWin->overrideRedirect; in xnestChangeWindowAttributes()
334 dixLookupResourceByType((void **) &pCmap, wColormap(pWin), in xnestChangeWindowAttributes()
339 xnestSetInstalledColormapWindows(pWin->drawable.pScreen); in xnestChangeWindowAttributes()
346 XChangeWindowAttributes(xnestDisplay, xnestWindow(pWin), in xnestChangeWindowAttributes()
353 xnestRealizeWindow(WindowPtr pWin) in xnestRealizeWindow() argument
355 xnestConfigureWindow(pWin, CWStackingOrder); in xnestRealizeWindow()
356 xnestShapeWindow(pWin); in xnestRealizeWindow()
357 XMapWindow(xnestDisplay, xnestWindow(pWin)); in xnestRealizeWindow()
363 xnestUnrealizeWindow(WindowPtr pWin) in xnestUnrealizeWindow() argument
365 XUnmapWindow(xnestDisplay, xnestWindow(pWin)); in xnestUnrealizeWindow()
371 xnestCopyWindow(WindowPtr pWin, xPoint oldOrigin, RegionPtr oldRegion) in xnestCopyWindow() argument
376 xnestClipNotify(WindowPtr pWin, int dx, int dy) in xnestClipNotify() argument
378 xnestConfigureWindow(pWin, CWStackingOrder); in xnestClipNotify()
379 xnestShapeWindow(pWin); in xnestClipNotify()
389 xnestWindowExposures(WindowPtr pWin, RegionPtr pRgn) in xnestWindowExposures() argument
397 window = xnestWindow(pWin); in xnestWindowExposures()
402 Box.x1 = pWin->drawable.x + wBorderWidth(pWin) + event.xexpose.x; in xnestWindowExposures()
403 Box.y1 = pWin->drawable.y + wBorderWidth(pWin) + event.xexpose.y; in xnestWindowExposures()
413 miWindowExposures(pWin, pRgn); in xnestWindowExposures()
417 xnestSetShape(WindowPtr pWin, int kind) in xnestSetShape() argument
419 xnestShapeWindow(pWin); in xnestSetShape()
420 miSetShape(pWin, kind); in xnestSetShape()
454 xnestShapeWindow(WindowPtr pWin) in xnestShapeWindow() argument
461 if (!xnestRegionEqual(xnestWindowPriv(pWin)->bounding_shape, in xnestShapeWindow()
462 wBoundingShape(pWin))) { in xnestShapeWindow()
464 if (wBoundingShape(pWin)) { in xnestShapeWindow()
465 RegionCopy(xnestWindowPriv(pWin)->bounding_shape, in xnestShapeWindow()
466 wBoundingShape(pWin)); in xnestShapeWindow()
469 pBox = RegionRects(xnestWindowPriv(pWin)->bounding_shape); in xnestShapeWindow()
471 i < RegionNumRects(xnestWindowPriv(pWin)->bounding_shape); in xnestShapeWindow()
479 XShapeCombineRegion(xnestDisplay, xnestWindow(pWin), in xnestShapeWindow()
484 RegionEmpty(xnestWindowPriv(pWin)->bounding_shape); in xnestShapeWindow()
486 XShapeCombineMask(xnestDisplay, xnestWindow(pWin), in xnestShapeWindow()
491 if (!xnestRegionEqual(xnestWindowPriv(pWin)->clip_shape, wClipShape(pWin))) { in xnestShapeWindow()
493 if (wClipShape(pWin)) { in xnestShapeWindow()
494 RegionCopy(xnestWindowPriv(pWin)->clip_shape, wClipShape(pWin)); in xnestShapeWindow()
497 pBox = RegionRects(xnestWindowPriv(pWin)->clip_shape); in xnestShapeWindow()
499 i < RegionNumRects(xnestWindowPriv(pWin)->clip_shape); i++) { in xnestShapeWindow()
506 XShapeCombineRegion(xnestDisplay, xnestWindow(pWin), in xnestShapeWindow()
511 RegionEmpty(xnestWindowPriv(pWin)->clip_shape); in xnestShapeWindow()
513 XShapeCombineMask(xnestDisplay, xnestWindow(pWin), in xnestShapeWindow()