mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 09:00:05 +01:00
randr: use primary output for RRFirstOutput()
(cherry picked from commit fe65f400ed)
This commit is contained in:
parent
f0234a9eb8
commit
2bc53ce668
1 changed files with 3 additions and 0 deletions
|
|
@ -438,6 +438,9 @@ RRFirstOutput (ScreenPtr pScreen)
|
|||
RROutputPtr output;
|
||||
int i, j;
|
||||
|
||||
if (pScrPriv->primaryOutput)
|
||||
return pScrPriv->primaryOutput;
|
||||
|
||||
for (i = 0; i < pScrPriv->numCrtcs; i++)
|
||||
{
|
||||
RRCrtcPtr crtc = pScrPriv->crtcs[i];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue