diff options
author | Adam Jackson <ajax@redhat.com> | 2008-12-08 17:42:47 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-12-10 11:31:28 -0500 |
commit | 86c64ddf21763972aa7fc8c5770259123c9907b3 (patch) | |
tree | bb17628317991be680d4ee94df61125c07eec64e /randr | |
parent | fe65f400ed16cb39db8c9518b9446f590c34db1a (diff) |
randr: clear primaryOutput when the output is deleted
Diffstat (limited to 'randr')
-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++) { |