PageRenderTime 55ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/nx-3.5.0/nx-X11/programs/Xserver/miext/rootless/rootlessValTree.c

#
C | 648 lines | 383 code | 43 blank | 222 comment | 93 complexity | a1329ca402d16f47dfabf0dd264134b3 MD5 | raw file
Possible License(s): BSD-3-Clause, GPL-2.0, LGPL-2.0
  1. /*
  2. * Calculate window clip lists for rootless mode
  3. *
  4. * This file is very closely based on mivaltree.c.
  5. */
  6. /* $XFree86: xc/programs/Xserver/miext/rootless/rootlessValTree.c,v 1.1tsi Exp $ */
  7. /*
  8. * mivaltree.c --
  9. * Functions for recalculating window clip lists. Main function
  10. * is miValidateTree.
  11. *
  12. Copyright 1987, 1988, 1989, 1998 The Open Group
  13. All Rights Reserved.
  14. The above copyright notice and this permission notice shall be included in
  15. all copies or substantial portions of the Software.
  16. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  19. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  20. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  21. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  22. Except as contained in this notice, the name of The Open Group shall not be
  23. used in advertising or otherwise to promote the sale, use or other dealings
  24. in this Software without prior written authorization from The Open Group.
  25. *
  26. * Copyright 1987, 1988, 1989 by
  27. * Digital Equipment Corporation, Maynard, Massachusetts,
  28. *
  29. * All Rights Reserved
  30. *
  31. * Permission to use, copy, modify, and distribute this software and its
  32. * documentation for any purpose and without fee is hereby granted,
  33. * provided that the above copyright notice appear in all copies and that
  34. * both that copyright notice and this permission notice appear in
  35. * supporting documentation, and that the name of Digital not be
  36. * used in advertising or publicity pertaining to distribution of the
  37. * software without specific, written prior permission.
  38. *
  39. * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  40. * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  41. * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  42. * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  43. * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  44. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  45. * SOFTWARE.
  46. *
  47. ******************************************************************/
  48. /* The panoramix components contained the following notice */
  49. /*****************************************************************
  50. Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts.
  51. Permission is hereby granted, free of charge, to any person obtaining a copy
  52. of this software and associated documentation files (the "Software"), to deal
  53. in the Software without restriction, including without limitation the rights
  54. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  55. copies of the Software.
  56. The above copyright notice and this permission notice shall be included in
  57. all copies or substantial portions of the Software.
  58. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  59. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  60. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  61. DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
  62. BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
  63. WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
  64. IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  65. Except as contained in this notice, the name of Digital Equipment Corporation
  66. shall not be used in advertising or otherwise to promote the sale, use or other
  67. dealings in this Software without prior written authorization from Digital
  68. Equipment Corporation.
  69. ******************************************************************/
  70. /*
  71. * Aug '86: Susan Angebranndt -- original code
  72. * July '87: Adam de Boor -- substantially modified and commented
  73. * Summer '89: Joel McCormack -- so fast you wouldn't believe it possible.
  74. * In particular, much improved code for window mapping and
  75. * circulating.
  76. * Bob Scheifler -- avoid miComputeClips for unmapped windows,
  77. * valdata changes
  78. */
  79. #ifdef HAVE_DIX_CONFIG_H
  80. #include <dix-config.h>
  81. #endif
  82. #include <X11/X.h>
  83. #include "scrnintstr.h"
  84. #include "validate.h"
  85. #include "windowstr.h"
  86. #include "mi.h"
  87. #include "regionstr.h"
  88. #include "mivalidate.h"
  89. #include "globals.h"
  90. #ifdef SHAPE
  91. /*
  92. * Compute the visibility of a shaped window
  93. */
  94. int
  95. RootlessShapedWindowIn (pScreen, universe, bounding, rect, x, y)
  96. ScreenPtr pScreen;
  97. RegionPtr universe, bounding;
  98. BoxPtr rect;
  99. register int x, y;
  100. {
  101. BoxRec box;
  102. register BoxPtr boundBox;
  103. int nbox;
  104. Bool someIn, someOut;
  105. register int t, x1, y1, x2, y2;
  106. nbox = REGION_NUM_RECTS (bounding);
  107. boundBox = REGION_RECTS (bounding);
  108. someIn = someOut = FALSE;
  109. x1 = rect->x1;
  110. y1 = rect->y1;
  111. x2 = rect->x2;
  112. y2 = rect->y2;
  113. while (nbox--)
  114. {
  115. if ((t = boundBox->x1 + x) < x1)
  116. t = x1;
  117. box.x1 = t;
  118. if ((t = boundBox->y1 + y) < y1)
  119. t = y1;
  120. box.y1 = t;
  121. if ((t = boundBox->x2 + x) > x2)
  122. t = x2;
  123. box.x2 = t;
  124. if ((t = boundBox->y2 + y) > y2)
  125. t = y2;
  126. box.y2 = t;
  127. if (box.x1 > box.x2)
  128. box.x2 = box.x1;
  129. if (box.y1 > box.y2)
  130. box.y2 = box.y1;
  131. switch (RECT_IN_REGION(pScreen, universe, &box))
  132. {
  133. case rgnIN:
  134. if (someOut)
  135. return rgnPART;
  136. someIn = TRUE;
  137. break;
  138. case rgnOUT:
  139. if (someIn)
  140. return rgnPART;
  141. someOut = TRUE;
  142. break;
  143. default:
  144. return rgnPART;
  145. }
  146. boundBox++;
  147. }
  148. if (someIn)
  149. return rgnIN;
  150. return rgnOUT;
  151. }
  152. #endif
  153. #define HasParentRelativeBorder(w) (!(w)->borderIsPixel && \
  154. HasBorder(w) && \
  155. (w)->backgroundState == ParentRelative)
  156. /*
  157. *-----------------------------------------------------------------------
  158. * RootlessComputeClips --
  159. * Recompute the clipList, borderClip, exposed and borderExposed
  160. * regions for pParent and its children. Only viewable windows are
  161. * taken into account.
  162. *
  163. * Results:
  164. * None.
  165. *
  166. * Side Effects:
  167. * clipList, borderClip, exposed and borderExposed are altered.
  168. * A VisibilityNotify event may be generated on the parent window.
  169. *
  170. *-----------------------------------------------------------------------
  171. */
  172. static void
  173. RootlessComputeClips (pParent, pScreen, universe, kind, exposed)
  174. register WindowPtr pParent;
  175. register ScreenPtr pScreen;
  176. register RegionPtr universe;
  177. VTKind kind;
  178. RegionPtr exposed; /* for intermediate calculations */
  179. {
  180. int dx,
  181. dy;
  182. RegionRec childUniverse;
  183. register WindowPtr pChild;
  184. int oldVis, newVis;
  185. BoxRec borderSize;
  186. RegionRec childUnion;
  187. Bool overlap;
  188. RegionPtr borderVisible;
  189. Bool resized;
  190. /*
  191. * Figure out the new visibility of this window.
  192. * The extent of the universe should be the same as the extent of
  193. * the borderSize region. If the window is unobscured, this rectangle
  194. * will be completely inside the universe (the universe will cover it
  195. * completely). If the window is completely obscured, none of the
  196. * universe will cover the rectangle.
  197. */
  198. borderSize.x1 = pParent->drawable.x - wBorderWidth(pParent);
  199. borderSize.y1 = pParent->drawable.y - wBorderWidth(pParent);
  200. dx = (int) pParent->drawable.x + (int) pParent->drawable.width + wBorderWidth(pParent);
  201. if (dx > 32767)
  202. dx = 32767;
  203. borderSize.x2 = dx;
  204. dy = (int) pParent->drawable.y + (int) pParent->drawable.height + wBorderWidth(pParent);
  205. if (dy > 32767)
  206. dy = 32767;
  207. borderSize.y2 = dy;
  208. oldVis = pParent->visibility;
  209. switch (RECT_IN_REGION( pScreen, universe, &borderSize))
  210. {
  211. case rgnIN:
  212. newVis = VisibilityUnobscured;
  213. break;
  214. case rgnPART:
  215. newVis = VisibilityPartiallyObscured;
  216. #ifdef SHAPE
  217. {
  218. RegionPtr pBounding;
  219. if ((pBounding = wBoundingShape (pParent)))
  220. {
  221. switch (RootlessShapedWindowIn (pScreen, universe,
  222. pBounding, &borderSize,
  223. pParent->drawable.x,
  224. pParent->drawable.y))
  225. {
  226. case rgnIN:
  227. newVis = VisibilityUnobscured;
  228. break;
  229. case rgnOUT:
  230. newVis = VisibilityFullyObscured;
  231. break;
  232. }
  233. }
  234. }
  235. #endif
  236. break;
  237. default:
  238. newVis = VisibilityFullyObscured;
  239. break;
  240. }
  241. pParent->visibility = newVis;
  242. if (oldVis != newVis &&
  243. ((pParent->eventMask | wOtherEventMasks(pParent)) & VisibilityChangeMask))
  244. SendVisibilityNotify(pParent);
  245. dx = pParent->drawable.x - pParent->valdata->before.oldAbsCorner.x;
  246. dy = pParent->drawable.y - pParent->valdata->before.oldAbsCorner.y;
  247. /*
  248. * avoid computations when dealing with simple operations
  249. */
  250. switch (kind) {
  251. case VTMap:
  252. case VTStack:
  253. case VTUnmap:
  254. break;
  255. case VTMove:
  256. if ((oldVis == newVis) &&
  257. ((oldVis == VisibilityFullyObscured) ||
  258. (oldVis == VisibilityUnobscured)))
  259. {
  260. pChild = pParent;
  261. while (1)
  262. {
  263. if (pChild->viewable)
  264. {
  265. if (pChild->visibility != VisibilityFullyObscured)
  266. {
  267. REGION_TRANSLATE( pScreen, &pChild->borderClip,
  268. dx, dy);
  269. REGION_TRANSLATE( pScreen, &pChild->clipList,
  270. dx, dy);
  271. pChild->drawable.serialNumber = NEXT_SERIAL_NUMBER;
  272. if (pScreen->ClipNotify)
  273. (* pScreen->ClipNotify) (pChild, dx, dy);
  274. }
  275. if (pChild->valdata)
  276. {
  277. REGION_NULL(pScreen,
  278. &pChild->valdata->after.borderExposed);
  279. if (HasParentRelativeBorder(pChild))
  280. {
  281. REGION_SUBTRACT(pScreen,
  282. &pChild->valdata->after.borderExposed,
  283. &pChild->borderClip,
  284. &pChild->winSize);
  285. }
  286. REGION_NULL(pScreen, &pChild->valdata->after.exposed);
  287. }
  288. if (pChild->firstChild)
  289. {
  290. pChild = pChild->firstChild;
  291. continue;
  292. }
  293. }
  294. while (!pChild->nextSib && (pChild != pParent))
  295. pChild = pChild->parent;
  296. if (pChild == pParent)
  297. break;
  298. pChild = pChild->nextSib;
  299. }
  300. return;
  301. }
  302. /* fall through */
  303. default:
  304. /*
  305. * To calculate exposures correctly, we have to translate the old
  306. * borderClip and clipList regions to the window's new location so there
  307. * is a correspondence between pieces of the new and old clipping regions.
  308. */
  309. if (dx || dy)
  310. {
  311. /*
  312. * We translate the old clipList because that will be exposed or copied
  313. * if gravity is right.
  314. */
  315. REGION_TRANSLATE( pScreen, &pParent->borderClip, dx, dy);
  316. REGION_TRANSLATE( pScreen, &pParent->clipList, dx, dy);
  317. }
  318. break;
  319. case VTBroken:
  320. REGION_EMPTY (pScreen, &pParent->borderClip);
  321. REGION_EMPTY (pScreen, &pParent->clipList);
  322. break;
  323. }
  324. borderVisible = pParent->valdata->before.borderVisible;
  325. resized = pParent->valdata->before.resized;
  326. REGION_NULL(pScreen, &pParent->valdata->after.borderExposed);
  327. REGION_NULL(pScreen, &pParent->valdata->after.exposed);
  328. /*
  329. * Since the borderClip must not be clipped by the children, we do
  330. * the border exposure first...
  331. *
  332. * 'universe' is the window's borderClip. To figure the exposures, remove
  333. * the area that used to be exposed from the new.
  334. * This leaves a region of pieces that weren't exposed before.
  335. */
  336. if (HasBorder (pParent))
  337. {
  338. if (borderVisible)
  339. {
  340. /*
  341. * when the border changes shape, the old visible portions
  342. * of the border will be saved by DIX in borderVisible --
  343. * use that region and destroy it
  344. */
  345. REGION_SUBTRACT( pScreen, exposed, universe, borderVisible);
  346. REGION_DESTROY( pScreen, borderVisible);
  347. }
  348. else
  349. {
  350. REGION_SUBTRACT( pScreen, exposed, universe, &pParent->borderClip);
  351. }
  352. if (HasParentRelativeBorder(pParent) && (dx || dy)) {
  353. REGION_SUBTRACT( pScreen, &pParent->valdata->after.borderExposed,
  354. universe,
  355. &pParent->winSize);
  356. } else {
  357. REGION_SUBTRACT( pScreen, &pParent->valdata->after.borderExposed,
  358. exposed, &pParent->winSize);
  359. }
  360. REGION_COPY( pScreen, &pParent->borderClip, universe);
  361. /*
  362. * To get the right clipList for the parent, and to make doubly sure
  363. * that no child overlaps the parent's border, we remove the parent's
  364. * border from the universe before proceeding.
  365. */
  366. REGION_INTERSECT( pScreen, universe, universe, &pParent->winSize);
  367. }
  368. else
  369. REGION_COPY( pScreen, &pParent->borderClip, universe);
  370. if ((pChild = pParent->firstChild) && pParent->mapped)
  371. {
  372. REGION_NULL(pScreen, &childUniverse);
  373. REGION_NULL(pScreen, &childUnion);
  374. if ((pChild->drawable.y < pParent->lastChild->drawable.y) ||
  375. ((pChild->drawable.y == pParent->lastChild->drawable.y) &&
  376. (pChild->drawable.x < pParent->lastChild->drawable.x)))
  377. {
  378. for (; pChild; pChild = pChild->nextSib)
  379. {
  380. if (pChild->viewable)
  381. REGION_APPEND( pScreen, &childUnion, &pChild->borderSize);
  382. }
  383. }
  384. else
  385. {
  386. for (pChild = pParent->lastChild; pChild; pChild = pChild->prevSib)
  387. {
  388. if (pChild->viewable)
  389. REGION_APPEND( pScreen, &childUnion, &pChild->borderSize);
  390. }
  391. }
  392. REGION_VALIDATE( pScreen, &childUnion, &overlap);
  393. for (pChild = pParent->firstChild;
  394. pChild;
  395. pChild = pChild->nextSib)
  396. {
  397. if (pChild->viewable) {
  398. /*
  399. * If the child is viewable, we want to remove its extents
  400. * from the current universe, but we only re-clip it if
  401. * it's been marked.
  402. */
  403. if (pChild->valdata) {
  404. /*
  405. * Figure out the new universe from the child's
  406. * perspective and recurse.
  407. */
  408. REGION_INTERSECT( pScreen, &childUniverse,
  409. universe,
  410. &pChild->borderSize);
  411. RootlessComputeClips (pChild, pScreen, &childUniverse,
  412. kind, exposed);
  413. }
  414. /*
  415. * Once the child has been processed, we remove its extents
  416. * from the current universe, thus denying its space to any
  417. * other sibling.
  418. */
  419. if (overlap)
  420. REGION_SUBTRACT( pScreen, universe, universe,
  421. &pChild->borderSize);
  422. }
  423. }
  424. if (!overlap)
  425. REGION_SUBTRACT( pScreen, universe, universe, &childUnion);
  426. REGION_UNINIT( pScreen, &childUnion);
  427. REGION_UNINIT( pScreen, &childUniverse);
  428. } /* if any children */
  429. /*
  430. * 'universe' now contains the new clipList for the parent window.
  431. *
  432. * To figure the exposure of the window we subtract the old clip from the
  433. * new, just as for the border.
  434. */
  435. if (oldVis == VisibilityFullyObscured ||
  436. oldVis == VisibilityNotViewable)
  437. {
  438. REGION_COPY( pScreen, &pParent->valdata->after.exposed, universe);
  439. }
  440. else if (newVis != VisibilityFullyObscured &&
  441. newVis != VisibilityNotViewable)
  442. {
  443. REGION_SUBTRACT( pScreen, &pParent->valdata->after.exposed,
  444. universe, &pParent->clipList);
  445. }
  446. /*
  447. * One last thing: backing storage. We have to try to save what parts of
  448. * the window are about to be obscured. We can just subtract the universe
  449. * from the old clipList and get the areas that were in the old but aren't
  450. * in the new and, hence, are about to be obscured.
  451. */
  452. if (pParent->backStorage && !resized)
  453. {
  454. REGION_SUBTRACT( pScreen, exposed, &pParent->clipList, universe);
  455. (* pScreen->SaveDoomedAreas)(pParent, exposed, dx, dy);
  456. }
  457. /* HACK ALERT - copying contents of regions, instead of regions */
  458. {
  459. RegionRec tmp;
  460. tmp = pParent->clipList;
  461. pParent->clipList = *universe;
  462. *universe = tmp;
  463. }
  464. #ifdef NOTDEF
  465. REGION_COPY( pScreen, &pParent->clipList, universe);
  466. #endif
  467. pParent->drawable.serialNumber = NEXT_SERIAL_NUMBER;
  468. if (pScreen->ClipNotify)
  469. (* pScreen->ClipNotify) (pParent, dx, dy);
  470. }
  471. static void
  472. RootlessTreeObscured(pParent)
  473. register WindowPtr pParent;
  474. {
  475. register WindowPtr pChild;
  476. register int oldVis;
  477. pChild = pParent;
  478. while (1)
  479. {
  480. if (pChild->viewable)
  481. {
  482. oldVis = pChild->visibility;
  483. if (oldVis != (pChild->visibility = VisibilityFullyObscured) &&
  484. ((pChild->eventMask | wOtherEventMasks(pChild)) & VisibilityChangeMask))
  485. SendVisibilityNotify(pChild);
  486. if (pChild->firstChild)
  487. {
  488. pChild = pChild->firstChild;
  489. continue;
  490. }
  491. }
  492. while (!pChild->nextSib && (pChild != pParent))
  493. pChild = pChild->parent;
  494. if (pChild == pParent)
  495. break;
  496. pChild = pChild->nextSib;
  497. }
  498. }
  499. /*
  500. *-----------------------------------------------------------------------
  501. * RootlessMiValidateTree --
  502. * Recomputes the clip list for pParent and all its inferiors.
  503. *
  504. * Results:
  505. * Always returns 1.
  506. *
  507. * Side Effects:
  508. * The clipList, borderClip, exposed, and borderExposed regions for
  509. * each marked window are altered.
  510. *
  511. * Notes:
  512. * This routine assumes that all affected windows have been marked
  513. * (valdata created) and their winSize and borderSize regions
  514. * adjusted to correspond to their new positions. The borderClip and
  515. * clipList regions should not have been touched.
  516. *
  517. * The top-most level is treated differently from all lower levels
  518. * because pParent is unchanged. For the top level, we merge the
  519. * regions taken up by the marked children back into the clipList
  520. * for pParent, thus forming a region from which the marked children
  521. * can claim their areas. For lower levels, where the old clipList
  522. * and borderClip are invalid, we can't do this and have to do the
  523. * extra operations done in miComputeClips, but this is much faster
  524. * e.g. when only one child has moved...
  525. *
  526. *-----------------------------------------------------------------------
  527. */
  528. /*
  529. Quartz version: used for validate from root in rootless mode.
  530. We need to make sure top-level windows don't clip each other,
  531. and that top-level windows aren't clipped to the root window.
  532. */
  533. /*ARGSUSED*/
  534. // fixme this is ugly
  535. // Xprint/ValTree.c doesn't work, but maybe that method can?
  536. int
  537. RootlessMiValidateTree (pRoot, pChild, kind)
  538. WindowPtr pRoot; /* Parent to validate */
  539. WindowPtr pChild; /* First child of pRoot that was
  540. * affected */
  541. VTKind kind; /* What kind of configuration caused call */
  542. {
  543. RegionRec childClip; /* The new borderClip for the current
  544. * child */
  545. RegionRec exposed; /* For intermediate calculations */
  546. register ScreenPtr pScreen;
  547. register WindowPtr pWin;
  548. pScreen = pRoot->drawable.pScreen;
  549. if (pChild == NullWindow)
  550. pChild = pRoot->firstChild;
  551. REGION_NULL(pScreen, &childClip);
  552. REGION_NULL(pScreen, &exposed);
  553. if (REGION_BROKEN (pScreen, &pRoot->clipList) &&
  554. !REGION_BROKEN (pScreen, &pRoot->borderClip))
  555. {
  556. // fixme this might not work, but hopefully doesn't happen anyway.
  557. kind = VTBroken;
  558. REGION_EMPTY (pScreen, &pRoot->clipList);
  559. ErrorF("ValidateTree: BUSTED!\n");
  560. }
  561. /*
  562. * Recursively compute the clips for all children of the root.
  563. * They don't clip against each other or the root itself, so
  564. * childClip is always reset to that child's size.
  565. */
  566. for (pWin = pChild;
  567. pWin != NullWindow;
  568. pWin = pWin->nextSib)
  569. {
  570. if (pWin->viewable) {
  571. if (pWin->valdata) {
  572. REGION_COPY( pScreen, &childClip, &pWin->borderSize);
  573. RootlessComputeClips (pWin, pScreen, &childClip, kind, &exposed);
  574. } else if (pWin->visibility == VisibilityNotViewable) {
  575. RootlessTreeObscured(pWin);
  576. }
  577. } else {
  578. if (pWin->valdata) {
  579. REGION_EMPTY( pScreen, &pWin->clipList);
  580. if (pScreen->ClipNotify)
  581. (* pScreen->ClipNotify) (pWin, 0, 0);
  582. REGION_EMPTY( pScreen, &pWin->borderClip);
  583. pWin->valdata = (ValidatePtr)NULL;
  584. }
  585. }
  586. }
  587. REGION_UNINIT(pScreen, &childClip);
  588. /* The root is never clipped by its children, so nothing on the root
  589. is ever exposed by moving or mapping its children. */
  590. REGION_NULL(pScreen, &pRoot->valdata->after.exposed);
  591. REGION_NULL(pScreen, &pRoot->valdata->after.borderExposed);
  592. return 1;
  593. }