mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-30 23:40:08 +01:00
randr: clear primaryOutput when the output is deleted
(cherry picked from commit 86c64ddf21)
This commit is contained in:
parent
2bc53ce668
commit
a82f10c5dd
1 changed files with 3 additions and 0 deletions
|
|
@ -380,6 +380,9 @@ RROutputDestroyResource (pointer value, XID pid)
|
|||
{
|
||||
rrScrPriv(pScreen);
|
||||
int i;
|
||||
|
||||
if (pScrPriv->primaryOutput == output)
|
||||
pScrPriv->primaryOutput = NULL;
|
||||
|
||||
for (i = 0; i < pScrPriv->numOutputs; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue