mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
st/xorg: Add enter/leave vt hooks for winsys
This commit is contained in:
parent
c33520b360
commit
f2e3fc1814
2 changed files with 8 additions and 0 deletions
|
|
@ -687,6 +687,9 @@ drv_leave_vt(int scrnIndex, int flags)
|
|||
xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(pScrn);
|
||||
int o;
|
||||
|
||||
if (ms->winsys_leave_vt)
|
||||
ms->winsys_leave_vt(pScrn);
|
||||
|
||||
for (o = 0; o < config->num_crtc; o++) {
|
||||
xf86CrtcPtr crtc = config->crtc[o];
|
||||
|
||||
|
|
@ -749,6 +752,9 @@ drv_enter_vt(int scrnIndex, int flags)
|
|||
if (!xf86SetDesiredModes(pScrn))
|
||||
return FALSE;
|
||||
|
||||
if (ms->winsys_enter_vt)
|
||||
ms->winsys_enter_vt(pScrn);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -117,6 +117,8 @@ typedef struct _modesettingRec
|
|||
/* winsys hocks */
|
||||
Bool (*winsys_screen_init)(ScrnInfoPtr pScr);
|
||||
Bool (*winsys_screen_close)(ScrnInfoPtr pScr);
|
||||
Bool (*winsys_enter_vt)(ScrnInfoPtr pScr);
|
||||
Bool (*winsys_leave_vt)(ScrnInfoPtr pScr);
|
||||
void *winsys_priv;
|
||||
|
||||
#ifdef DRM_MODE_FEATURE_DIRTYFB
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue