From 80b5d3a3264d2c5167e5ac85a3b04af0f89cece1 Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Fri, 21 May 2010 23:13:51 -0700 Subject: Move each screen's screensaver data into ScreenRec. Most references to the savedScreenInfo array already had the corresponding screen pointer handy, which meant they usually looked like "savedScreenInfo[pScreen->myNum]". Adding a field to ScreenRec instead of keeping this information in a parallel array simplifies those expressions, and eliminates a MAXSCREENS-sized array. Since dix uses this data, a screen private entry isn't appropriate. Signed-off-by: Jamey Sharp Reviewed-by: Tiago Vignatti Tested-by: Tiago Vignatti (i686 GNU/Linux) --- composite/compwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'composite') diff --git a/composite/compwindow.c b/composite/compwindow.c index f2f6ea3cd..3b16bf980 100644 --- a/composite/compwindow.c +++ b/composite/compwindow.c @@ -800,7 +800,7 @@ CompositeRealChildHead (WindowPtr pWin) if (!pWin->parent && (screenIsSaved == SCREEN_SAVER_ON) && - (HasSaverWindow (pWin->drawable.pScreen->myNum))) { + (HasSaverWindow (pWin->drawable.pScreen))) { /* First child is the screen saver; see if next child is the overlay */ pChildBefore = pWin->firstChild; -- cgit v1.2.3