summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-12-08 22:42:47 (GMT)
committerAdam Jackson <ajax@redhat.com>2008-12-16 14:55:24 (GMT)
commita82f10c5dd9fa74ff18759ab288bbd9c8b7ac4de (patch)
tree6fa900b17c27e56403eba9344b5efa5fee686325
parent2bc53ce66828b6c177e3298fa2f326c77c93e136 (diff)
randr: clear primaryOutput when the output is deleted
(cherry picked from commit 86c64ddf21763972aa7fc8c5770259123c9907b3)
-rw-r--r--randr/rroutput.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/randr/rroutput.c b/randr/rroutput.c
index 48b5700..82c2530 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++)
{