summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2005-06-07 18:54:10 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2005-06-07 18:54:10 +0000
commitf8de9b4b9a5ce2756652c6b9ec1e84aedbc3519a (patch)
tree922ce4aef6ef9cba06bce5a9162dd06505f91d05 /src
parent1f538007e9da7d4ad30ec4d4d281fb07ef300ddb (diff)
Fix text restoration when display switching has been activated and we could be
potentially on a different display than the initial one.
Diffstat (limited to 'src')
-rw-r--r--src/i830_driver.c3
1 files changed, 3 insertions, 0 deletions
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)) {