Fix overlay detection when matching Xv adaptors across screens.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Acked-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Jamey Sharp 2009-10-07 09:07:03 -07:00 committed by Keith Packard
parent 68304215e2
commit 44efcdde50

View File

@ -1912,7 +1912,7 @@ void XineramifyXv(void)
if((pAdapt->type & XvImageMask) && (pAdapt->nImages > 0)) {
hasOverlay = FALSE;
for(l = 0; l < pAdapt->nAttributes; l++) {
if(!strcmp(pAdapt->name, "XV_COLORKEY")) {
if(!strcmp(pAdapt->pAttributes[l].name, "XV_COLORKEY")) {
hasOverlay = TRUE;
break;
}