xserver: Branch 'server-1.2-branch'
Alan Hourihane
alanh at kemper.freedesktop.org
Fri Oct 13 16:51:00 EEST 2006
hw/xfree86/common/xf86Cursor.c | 3 +++
1 files changed, 3 insertions(+)
New commits:
diff-tree 7a995802b3ca11b741b23cc267639b548867cb70 (from 470237576445f590c6d0b811e2891ea2e62747cf)
Author: Alan Hourihane <alanh at fairlite.demon.co.uk>
Date: Fri Oct 13 14:48:10 2006 +0100
Block IO on switchmode just as we do for VT switching
to avoid cursor movements signalling io.
(cherry picked from cf948b7b04dfeb61a294889027b9a54f6b9b478e commit)
diff --git a/hw/xfree86/common/xf86Cursor.c b/hw/xfree86/common/xf86Cursor.c
index 61f0ce5..8bb12ae 100644
--- a/hw/xfree86/common/xf86Cursor.c
+++ b/hw/xfree86/common/xf86Cursor.c
@@ -213,6 +213,7 @@ xf86SwitchMode(ScreenPtr pScreen, Displa
ScreenPtr pCursorScreen;
Bool Switched;
int px, py;
+ int sigstate;
if (!pScr->vtSema || !mode || !pScr->SwitchMode)
return FALSE;
@@ -232,6 +233,7 @@ xf86SwitchMode(ScreenPtr pScreen, Displa
if (pScreen == pCursorScreen)
miPointerPosition(&px, &py);
+ sigstate = xf86BlockSIGIO ();
xf86EnterServerState(SETUP);
Switched = (*pScr->SwitchMode)(pScr->scrnIndex, mode, 0);
xf86EnterServerState(OPERATING);
@@ -269,6 +271,7 @@ xf86SwitchMode(ScreenPtr pScreen, Displa
pScr->frameY1 = pScr->virtualY - 1;
}
}
+ xf86UnblockSIGIO (sigstate);
if (pScr->AdjustFrame)
(*pScr->AdjustFrame)(pScr->scrnIndex, pScr->frameX0, pScr->frameY0, 0);
More information about the xorg-commit
mailing list