Compare commits
No commits in common. "master" and "xlibre-xserver-25.0.0.4" have entirely different histories.
master
...
xlibre-xse
|
@ -370,23 +370,6 @@ ddxProcessArgument(int argc, char **argv, int i)
|
||||||
return KdProcessArgument(argc, argv, i);
|
return KdProcessArgument(argc, argv, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
|
||||||
EphyrInit(void)
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* make sure at least one screen
|
|
||||||
* has been added to the system.
|
|
||||||
*/
|
|
||||||
if (!KdCardInfoLast()) {
|
|
||||||
processScreenArg("640x480", NULL);
|
|
||||||
}
|
|
||||||
return hostx_init();
|
|
||||||
}
|
|
||||||
|
|
||||||
KdOsFuncs EphyrOsFuncs = {
|
|
||||||
.Init = EphyrInit,
|
|
||||||
};
|
|
||||||
|
|
||||||
void
|
void
|
||||||
OsVendorInit(void)
|
OsVendorInit(void)
|
||||||
{
|
{
|
||||||
|
@ -398,7 +381,12 @@ OsVendorInit(void)
|
||||||
if (hostx_want_host_cursor())
|
if (hostx_want_host_cursor())
|
||||||
ephyrFuncs.initCursor = &ephyrCursorInit;
|
ephyrFuncs.initCursor = &ephyrCursorInit;
|
||||||
|
|
||||||
KdOsInit(&EphyrOsFuncs);
|
if (serverGeneration == 1) {
|
||||||
|
if (!KdCardInfoLast()) {
|
||||||
|
processScreenArg("640x480", NULL);
|
||||||
|
}
|
||||||
|
hostx_init();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
KdCardFuncs ephyrFuncs = {
|
KdCardFuncs ephyrFuncs = {
|
||||||
|
|
|
@ -91,14 +91,6 @@ const char *kdGlobalXkbLayout = NULL;
|
||||||
const char *kdGlobalXkbVariant = NULL;
|
const char *kdGlobalXkbVariant = NULL;
|
||||||
const char *kdGlobalXkbOptions = NULL;
|
const char *kdGlobalXkbOptions = NULL;
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Carry arguments from InitOutput through driver initialization
|
|
||||||
* to KdScreenInit
|
|
||||||
*/
|
|
||||||
|
|
||||||
KdOsFuncs *kdOsFuncs = NULL;
|
|
||||||
|
|
||||||
void
|
void
|
||||||
KdDisableScreen(ScreenPtr pScreen)
|
KdDisableScreen(ScreenPtr pScreen)
|
||||||
{
|
{
|
||||||
|
@ -525,19 +517,6 @@ KdProcessArgument(int argc, char **argv, int i)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
KdOsInit(KdOsFuncs * pOsFuncs)
|
|
||||||
{
|
|
||||||
kdOsFuncs = pOsFuncs;
|
|
||||||
if (pOsFuncs) {
|
|
||||||
if (serverGeneration == 1) {
|
|
||||||
KdDoSwitchCmd("start");
|
|
||||||
if (pOsFuncs->Init)
|
|
||||||
(*pOsFuncs->Init) ();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static Bool
|
static Bool
|
||||||
KdAllocatePrivates(ScreenPtr pScreen)
|
KdAllocatePrivates(ScreenPtr pScreen)
|
||||||
{
|
{
|
||||||
|
|
|
@ -278,16 +278,6 @@ int KdAddConfigKeyboard(char *pointer);
|
||||||
int KdAddKeyboard(KdKeyboardInfo * ki);
|
int KdAddKeyboard(KdKeyboardInfo * ki);
|
||||||
void KdRemoveKeyboard(KdKeyboardInfo * ki);
|
void KdRemoveKeyboard(KdKeyboardInfo * ki);
|
||||||
|
|
||||||
typedef struct _KdOsFuncs {
|
|
||||||
int (*Init) (void); /* Only called when the X server is started, when serverGeneration == 1 */
|
|
||||||
void (*Enable) (void);
|
|
||||||
Bool (*SpecialKey) (KeySym);
|
|
||||||
void (*Disable) (void);
|
|
||||||
void (*Fini) (void);
|
|
||||||
void (*pollEvents) (void);
|
|
||||||
void (*Bell) (int, int, int);
|
|
||||||
} KdOsFuncs;
|
|
||||||
|
|
||||||
typedef struct _KdPointerMatrix {
|
typedef struct _KdPointerMatrix {
|
||||||
int matrix[2][3];
|
int matrix[2][3];
|
||||||
} KdPointerMatrix;
|
} KdPointerMatrix;
|
||||||
|
@ -299,8 +289,6 @@ extern DevPrivateKeyRec kdScreenPrivateKeyRec;
|
||||||
extern Bool kdEmulateMiddleButton;
|
extern Bool kdEmulateMiddleButton;
|
||||||
extern Bool kdDisableZaphod;
|
extern Bool kdDisableZaphod;
|
||||||
|
|
||||||
extern KdOsFuncs *kdOsFuncs;
|
|
||||||
|
|
||||||
#define KdGetScreenPriv(pScreen) ((KdPrivScreenPtr) \
|
#define KdGetScreenPriv(pScreen) ((KdPrivScreenPtr) \
|
||||||
dixLookupPrivate(&(pScreen)->devPrivates, kdScreenPrivateKey))
|
dixLookupPrivate(&(pScreen)->devPrivates, kdScreenPrivateKey))
|
||||||
#define KdSetScreenPriv(pScreen,v) \
|
#define KdSetScreenPriv(pScreen,v) \
|
||||||
|
@ -357,9 +345,6 @@ void
|
||||||
int
|
int
|
||||||
KdProcessArgument(int argc, char **argv, int i);
|
KdProcessArgument(int argc, char **argv, int i);
|
||||||
|
|
||||||
void
|
|
||||||
KdOsInit(KdOsFuncs * pOsFuncs);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
KdOsAddInputDrivers(void);
|
KdOsAddInputDrivers(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue