aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xfree86/shadowfb/shadow.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-07-14 10:57:04 +0000
committermarha <marha@users.sourceforge.net>2010-07-14 10:57:04 +0000
commit8fb9d7f4ca923dc7f640a0df6c871348a3e554ab (patch)
tree39ebbf9255fe0fd660ea645f4ebdef3287a5078b /xorg-server/hw/xfree86/shadowfb/shadow.c
parent80b785273c916676a94cbe1d7dfbbc93b58127d5 (diff)
parent865af20e32591176d03acf984d9b5788d5ebce21 (diff)
downloadvcxsrv-8fb9d7f4ca923dc7f640a0df6c871348a3e554ab.tar.gz
vcxsrv-8fb9d7f4ca923dc7f640a0df6c871348a3e554ab.tar.bz2
vcxsrv-8fb9d7f4ca923dc7f640a0df6c871348a3e554ab.zip
svn merge ^/branches/released .
Diffstat (limited to 'xorg-server/hw/xfree86/shadowfb/shadow.c')
-rw-r--r--xorg-server/hw/xfree86/shadowfb/shadow.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/xorg-server/hw/xfree86/shadowfb/shadow.c b/xorg-server/hw/xfree86/shadowfb/shadow.c
index 4c7551de9..20e70d6ce 100644
--- a/xorg-server/hw/xfree86/shadowfb/shadow.c
+++ b/xorg-server/hw/xfree86/shadowfb/shadow.c
@@ -216,9 +216,14 @@ static Bool
ShadowEnterVT(int index, int flags)
{
ScrnInfoPtr pScrn = xf86Screens[index];
+ Bool ret;
ShadowScreenPtr pPriv = GET_SCREEN_PRIVATE(pScrn->pScreen);
- if((*pPriv->EnterVT)(index, flags)) {
+ pScrn->EnterVT = pPriv->EnterVT;
+ ret = (*pPriv->EnterVT)(index, flags);
+ pPriv->EnterVT = pScrn->EnterVT;
+ pScrn->EnterVT = ShadowEnterVT;
+ if(ret) {
pPriv->vtSema = TRUE;
return TRUE;
}
@@ -229,11 +234,15 @@ ShadowEnterVT(int index, int flags)
static void
ShadowLeaveVT(int index, int flags)
{
+ ScrnInfoPtr pScrn = xf86Screens[index];
ShadowScreenPtr pPriv = GET_SCREEN_PRIVATE(xf86Screens[index]->pScreen);
pPriv->vtSema = FALSE;
+ pScrn->LeaveVT = pPriv->LeaveVT;
(*pPriv->LeaveVT)(index, flags);
+ pPriv->LeaveVT = pScrn->LeaveVT;
+ pScrn->LeaveVT = ShadowLeaveVT;
}
/**********************************************************/