diff options
author | Adam Jackson <ajax@redhat.com> | 2008-12-08 17:42:47 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-12-16 09:55:24 -0500 |
commit | a82f10c5dd9fa74ff18759ab288bbd9c8b7ac4de (patch) | |
tree | 6fa900b17c27e56403eba9344b5efa5fee686325 | |
parent | 2bc53ce66828b6c177e3298fa2f326c77c93e136 (diff) |
randr: clear primaryOutput when the output is deleted
(cherry picked from commit 86c64ddf21763972aa7fc8c5770259123c9907b3)
-rw-r--r-- | randr/rroutput.c | 3 |
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++) { |