aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-05-25 17:29:17 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-06-11 12:09:27 +0200
commitaf1c4b9b7b83426f1fde1cfb906b2ee26e947576 (patch)
tree73af2e9b2ff3abdc53b92a5455e680e0f5c94657 /nx-X11/programs/Xserver/hw
parent9e051eab0fee0915702c6752669542c7cc40de18 (diff)
downloadnx-libs-af1c4b9b7b83426f1fde1cfb906b2ee26e947576.tar.gz
nx-libs-af1c4b9b7b83426f1fde1cfb906b2ee26e947576.tar.bz2
nx-libs-af1c4b9b7b83426f1fde1cfb906b2ee26e947576.zip
NXmiexpose.c: mark NX changes
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c b/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c
index 085684fc1..146ecad75 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c
@@ -107,9 +107,6 @@ miWindowExposures(pWin, prgn, other_exposed)
WindowPtr pWin;
register RegionPtr prgn, other_exposed;
{
-
- int total;
-
RegionPtr exposures = prgn;
if (pWin->backStorage && prgn)
/*
@@ -146,15 +143,19 @@ miWindowExposures(pWin, prgn, other_exposed)
exposures = other_exposed;
}
+#ifdef NXAGENT_SERVER
/*
* If the number of rectangles is greater
* than 4, let the function decide.
*/
- total = RegionNumRects(exposures);
+ int total = RegionNumRects(exposures);
if (clientInterested && exposures && (total > RECTLIMIT ||
(total > 4 && nxagentExtentsPredicate(total) == 1)))
+ #else
+ if (clientInterested && exposures && (RegionNumRects(exposures) > RECTLIMIT))
+ #endif
{
/*
* If we have LOTS of rectangles, we decide to take the extents