Reinitialize offscreen memory before enabling cursor on VT switch-to
This commit is contained in:
parent
13c6b2f0b6
commit
d7263b11f0
|
@ -303,11 +303,11 @@ KdEnableScreen (ScreenPtr pScreen)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
pScreenPriv->enabled = TRUE;
|
pScreenPriv->enabled = TRUE;
|
||||||
pScreenPriv->card->selected = pScreenPriv->screen->mynum;
|
pScreenPriv->card->selected = pScreenPriv->screen->mynum;
|
||||||
|
KdOffscreenSwapIn (pScreen);
|
||||||
if (!pScreenPriv->screen->softCursor && pScreenPriv->card->cfuncs->enableCursor)
|
if (!pScreenPriv->screen->softCursor && pScreenPriv->card->cfuncs->enableCursor)
|
||||||
(*pScreenPriv->card->cfuncs->enableCursor) (pScreen);
|
(*pScreenPriv->card->cfuncs->enableCursor) (pScreen);
|
||||||
if (!pScreenPriv->screen->dumb && pScreenPriv->card->cfuncs->enableAccel)
|
if (!pScreenPriv->screen->dumb && pScreenPriv->card->cfuncs->enableAccel)
|
||||||
(*pScreenPriv->card->cfuncs->enableAccel) (pScreen);
|
(*pScreenPriv->card->cfuncs->enableAccel) (pScreen);
|
||||||
KdOffscreenSwapIn (pScreen);
|
|
||||||
KdEnableColormap (pScreen);
|
KdEnableColormap (pScreen);
|
||||||
KdSetRootClip (pScreen, TRUE);
|
KdSetRootClip (pScreen, TRUE);
|
||||||
if (pScreenPriv->card->cfuncs->dpms)
|
if (pScreenPriv->card->cfuncs->dpms)
|
||||||
|
|
Loading…
Reference in New Issue