randr: clear primaryOutput when the output is deleted
This commit is contained in:
parent
fe65f400ed
commit
86c64ddf21
|
@ -381,6 +381,9 @@ RROutputDestroyResource (pointer value, XID pid)
|
||||||
rrScrPriv(pScreen);
|
rrScrPriv(pScreen);
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (pScrPriv->primaryOutput == output)
|
||||||
|
pScrPriv->primaryOutput = NULL;
|
||||||
|
|
||||||
for (i = 0; i < pScrPriv->numOutputs; i++)
|
for (i = 0; i < pScrPriv->numOutputs; i++)
|
||||||
{
|
{
|
||||||
if (pScrPriv->outputs[i] == output)
|
if (pScrPriv->outputs[i] == output)
|
||||||
|
|
Loading…
Reference in New Issue