aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/mi/mivaltree.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/mi/mivaltree.c')
-rw-r--r--nx-X11/programs/Xserver/mi/mivaltree.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/nx-X11/programs/Xserver/mi/mivaltree.c b/nx-X11/programs/Xserver/mi/mivaltree.c
index 0435925ed..21534cee0 100644
--- a/nx-X11/programs/Xserver/mi/mivaltree.c
+++ b/nx-X11/programs/Xserver/mi/mivaltree.c
@@ -237,6 +237,18 @@ miComputeClips (
dy = 32767;
borderSize.y2 = dy;
+#ifdef COMPOSITE
+ /*
+ * In redirected drawing case, reset universe to borderSize
+ */
+ if (pParent->redirectDraw)
+ {
+ if (miSetRedirectBorderClipProc)
+ (*miSetRedirectBorderClipProc) (pParent, universe);
+ RegionCopy(universe, &pParent->borderSize);
+ }
+#endif
+
oldVis = pParent->visibility;
switch (RegionContainsRect(universe, &borderSize))
{
@@ -276,18 +288,6 @@ miComputeClips (
((pParent->eventMask | wOtherEventMasks(pParent)) & VisibilityChangeMask))
SendVisibilityNotify(pParent);
-#ifdef COMPOSITE
- /*
- * In redirected drawing case, reset universe to borderSize
- */
- if (pParent->redirectDraw)
- {
- if (miSetRedirectBorderClipProc)
- (*miSetRedirectBorderClipProc) (pParent, universe);
- RegionCopy(universe, &pParent->borderSize);
- }
-#endif
-
dx = pParent->drawable.x - pParent->valdata->before.oldAbsCorner.x;
dy = pParent->drawable.y - pParent->valdata->before.oldAbsCorner.y;