RANDR 1.2: Don't report a square resolution to RANDR 1.1 clients.
It can't possibly do anything useful, and older versions of Gnome (and proably others) get very confused by it. So do the drivers, for that matter.
This commit is contained in:
parent
06c0372c3a
commit
61c3f63a75
|
@ -145,23 +145,6 @@ xf86RandR12GetInfo (ScreenPtr pScreen, Rotation *rotations)
|
||||||
randrp->maxY = maxY;
|
randrp->maxY = maxY;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scrp->currentMode->HDisplay != randrp->virtualX ||
|
|
||||||
scrp->currentMode->VDisplay != randrp->virtualY)
|
|
||||||
{
|
|
||||||
pSize = RRRegisterSize (pScreen,
|
|
||||||
randrp->virtualX, randrp->virtualY,
|
|
||||||
randrp->mmWidth,
|
|
||||||
randrp->mmHeight);
|
|
||||||
if (!pSize)
|
|
||||||
return FALSE;
|
|
||||||
RRRegisterRate (pScreen, pSize, refresh0);
|
|
||||||
if (scrp->virtualX == randrp->virtualX &&
|
|
||||||
scrp->virtualY == randrp->virtualY)
|
|
||||||
{
|
|
||||||
RRSetCurrentConfig (pScreen, randrp->rotation, refresh0, pSize);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user