From af1c4b9b7b83426f1fde1cfb906b2ee26e947576 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Sat, 25 May 2019 17:29:17 +0200 Subject: NXmiexpose.c: mark NX changes --- nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c') 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 -- cgit v1.2.3