Commit 58c3240f authored by Eamon Walsh's avatar Eamon Walsh Committed by Eamon Walsh

registry: Register MIT-SCREEN-SAVER extension protocol names.

parent 4e274e90
......@@ -49,6 +49,7 @@ in this Software without prior written authorization from the X Consortium.
#include "cursorstr.h"
#include "colormapst.h"
#include "xace.h"
#include "registry.h"
#ifdef PANORAMIX
#include "panoramiX.h"
#include "panoramiXsrv.h"
......@@ -62,9 +63,6 @@ in this Software without prior written authorization from the X Consortium.
#include "modinit.h"
#if 0
static unsigned char ScreenSaverReqCode = 0;
#endif
static int ScreenSaverEventBase = 0;
static DISPATCH_PROC(ProcScreenSaverQueryInfo);
......@@ -274,12 +272,26 @@ ScreenSaverExtensionInit(INITARGS)
ProcScreenSaverDispatch, SProcScreenSaverDispatch,
ScreenSaverResetProc, StandardMinorOpcode)))
{
#if 0
ScreenSaverReqCode = (unsigned char)extEntry->base;
#endif
ScreenSaverEventBase = extEntry->eventBase;
EventSwapVector[ScreenSaverEventBase] = (EventSwapPtr) SScreenSaverNotifyEvent;
}
} else
return;
RegisterRequestName(extEntry->base, X_ScreenSaverQueryVersion,
ScreenSaverName ":QueryVersion");
RegisterRequestName(extEntry->base, X_ScreenSaverQueryInfo,
ScreenSaverName ":QueryInfo");
RegisterRequestName(extEntry->base, X_ScreenSaverSelectInput,
ScreenSaverName ":SelectInput");
RegisterRequestName(extEntry->base, X_ScreenSaverSetAttributes,
ScreenSaverName ":SetAttributes");
RegisterRequestName(extEntry->base, X_ScreenSaverUnsetAttributes,
ScreenSaverName ":UnsetAttributes");
RegisterRequestName(extEntry->base, X_ScreenSaverSuspend,
ScreenSaverName ":Suspend");
RegisterEventName(ScreenSaverEventBase + ScreenSaverNotify,
ScreenSaverName ":Notify");
}
/*ARGSUSED*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment