entity sharing: make !shareable entity non-fatal.
Just because the entity isn't shareable, we should bring down the server. Just ignore the extra screen and keep going.
This commit is contained in:
@@ -290,8 +290,10 @@ xf86AddEntityToScreen(ScrnInfoPtr pScrn, int entityIndex)
|
|||||||
if (entityIndex == -1)
|
if (entityIndex == -1)
|
||||||
return;
|
return;
|
||||||
if (xf86Entities[entityIndex]->inUse &&
|
if (xf86Entities[entityIndex]->inUse &&
|
||||||
!(xf86Entities[entityIndex]->entityProp & IS_SHARED_ACCEL))
|
!(xf86Entities[entityIndex]->entityProp & IS_SHARED_ACCEL)) {
|
||||||
FatalError("Requested Entity already in use!\n");
|
ErrorF("Requested Entity already in use!\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
pScrn->numEntities++;
|
pScrn->numEntities++;
|
||||||
pScrn->entityList = xnfrealloc(pScrn->entityList,
|
pScrn->entityList = xnfrealloc(pScrn->entityList,
|
||||||
|
|||||||
Reference in New Issue
Block a user