Move each screen's root-window pointer into ScreenRec.
Many references to the WindowTable array already had the corresponding screen pointer handy, which meant they usually looked like "WindowTable[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. xf86-video-dummy currently uses WindowTable, so it needs to be updated to reflect this change. Signed-off-by: Jamey Sharp <email@example.com> Reviewed-by: Tiago Vignatti <firstname.lastname@example.org> Tested-by: Tiago Vignatti <email@example.com> (i686 GNU/Linux)
Showing with 130 additions and 128 deletions