Skip to content
Snippets Groups Projects
Commit 92135056 authored by Dave Airlie's avatar Dave Airlie
Browse files

xfree86: add VT owner interface


This is just a simple interface to avoid accessing x86Screens[0]
directly.

Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarDave Airlie <airlied@gmail.com>
(cherry picked from commit d61ea1f6)
parent f5796f98
No related branches found
No related tags found
No related merge requests found
......@@ -243,6 +243,7 @@ extern _X_EXPORT void xf86InterceptSigIll(void (*sigillhandler) (void));
extern _X_EXPORT Bool xf86EnableVTSwitch(Bool new);
extern _X_EXPORT void xf86ProcessActionEvent(ActionEvent action, void *arg);
extern _X_EXPORT void xf86PrintBacktrace(void);
extern _X_EXPORT Bool xf86VTOwner(void);
/* xf86Helper.c */
......
......@@ -769,3 +769,12 @@ DDXRingBell(int volume, int pitch, int duration)
{
xf86OSRingBell(volume, pitch, duration);
}
Bool
xf86VTOwner(void)
{
/* at system startup xf86Screens[0] won't be set - but we will own the VT */
if (xf86NumScreens == 0)
return TRUE;
return xf86Screens[0]->vtSema;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment