Commit 6ce9fb5f authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Window.c/NXmiexpose.c: remove hack for certain WM theme

We do not even know what theme this is and it is probably not relevant nowadays.
parent af1c4b9b
......@@ -142,20 +142,7 @@ miWindowExposures(pWin, prgn, other_exposed)
}
exposures = other_exposed;
}
#ifdef NXAGENT_SERVER
/*
* If the number of rectangles is greater
* than 4, let the function decide.
*/
int total = RegionNumRects(exposures);
if (clientInterested && exposures && (total > RECTLIMIT ||
(total > 4 && nxagentExtentsPredicate(total) == 1)))
#else
if (clientInterested && exposures && (RegionNumRects(exposures) > RECTLIMIT))
#endif
if (clientInterested && exposures && (RegionNumRects(exposures) > RECTLIMIT))
{
/*
* If we have LOTS of rectangles, we decide to take the extents
......
......@@ -3484,26 +3484,7 @@ void nxagentSetTopLevelEventMask(WindowPtr pWin)
}
/*
* This function must return 1 if we want the
* exposures to be sent as the window's extents.
* This is actually a harmless, but useful hack,
* as it speeds up the window redraws considera-
* bly, when using a very popular WM theme.
*/
int nxagentExtentsPredicate(int total)
{
#ifdef TEST
if (total == 6 || total == 11 || total == 10)
{
fprintf(stderr, "nxagentExtentsPredicate: WARNING! Returning [%d] with [%d] rectangles.\n",
(total == 6 || total == 11 || total == 10), total);
}
#endif
return (total == 6 || total == 11 || total == 10);
}
void nxagentFlushConfigureWindow(void)
{
ConfiguredWindowStruct *index;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment