From f8de9b4b9a5ce2756652c6b9ec1e84aedbc3519a Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Tue, 7 Jun 2005 18:54:10 +0000 Subject: Fix text restoration when display switching has been activated and we could be potentially on a different display than the initial one. --- src/i830_driver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/i830_driver.c b/src/i830_driver.c index 078707a9..8ab195c8 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -5707,6 +5707,9 @@ I830CheckDevicesTimer(OsTimerPtr timer, CARD32 now, pointer arg) "Detected display change operation (0x%x, 0x%x, 0x%lx).\n", pI8301->lastDevice1, pI8301->lastDevice2, temp); + /* So that if we close on the wrong config, we restore correctly */ + pI830->specifiedMonitor = TRUE; + /* double check the display devices are what's configured and try * not to do it twice because of dual heads with the code above */ if (!SetDisplayDevices(pScrn, temp)) { -- cgit v1.2.3