summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-12-08 17:42:47 -0500
committerAdam Jackson <ajax@redhat.com>2008-12-10 11:31:28 -0500
commit86c64ddf21763972aa7fc8c5770259123c9907b3 (patch)
treebb17628317991be680d4ee94df61125c07eec64e /randr
parentfe65f400ed16cb39db8c9518b9446f590c34db1a (diff)
randr: clear primaryOutput when the output is deleted
Diffstat (limited to 'randr')
-rw-r--r--randr/rroutput.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/randr/rroutput.c b/randr/rroutput.c
index 48b5700c8..82c2530fe 100644
--- a/randr/rroutput.c
+++ b/randr/rroutput.c
@@ -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++)
{