mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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 <jamey@minilop.net> Reviewed-by: Tiago Vignatti <tiago.vignatti@nokia.com> Tested-by: Tiago Vignatti <tiago.vignatti@nokia.com> (i686 GNU/Linux)
This commit is contained in:
@@ -2681,7 +2681,7 @@ PanoramiXRenderCreatePicture (ClientPtr client)
|
||||
newPict->info[0].id = stuff->pid;
|
||||
|
||||
if (refDraw->type == XRT_WINDOW &&
|
||||
stuff->drawable == WindowTable[0]->drawable.id)
|
||||
stuff->drawable == screenInfo.screens[0]->root->drawable.id)
|
||||
{
|
||||
newPict->u.pict.root = TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user