registry: Register XINERAMA extension protocol names.
This commit is contained in:
parent
3464b41923
commit
b9f5ab98c8
|
@ -53,6 +53,7 @@ Equipment Corporation.
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
#include "registry.h"
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
#include "picturestr.h"
|
#include "picturestr.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -589,6 +590,19 @@ void PanoramiXExtensionInit(int argc, char *argv[])
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
PanoramiXRenderInit ();
|
PanoramiXRenderInit ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
RegisterRequestName(extEntry->base, X_PanoramiXQueryVersion,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":QueryVersion");
|
||||||
|
RegisterRequestName(extEntry->base, X_PanoramiXGetState,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":GetState");
|
||||||
|
RegisterRequestName(extEntry->base, X_PanoramiXGetScreenCount,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":GetScreenCount");
|
||||||
|
RegisterRequestName(extEntry->base, X_PanoramiXGetScreenSize,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":GetScreenSize");
|
||||||
|
RegisterRequestName(extEntry->base, X_XineramaIsActive,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":IsActive");
|
||||||
|
RegisterRequestName(extEntry->base, X_XineramaQueryScreens,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":QueryScreens");
|
||||||
}
|
}
|
||||||
|
|
||||||
extern Bool CreateConnectionBlock(void);
|
extern Bool CreateConnectionBlock(void);
|
||||||
|
|
|
@ -42,6 +42,7 @@ Equipment Corporation.
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include <X11/extensions/panoramiXproto.h>
|
#include <X11/extensions/panoramiXproto.h>
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
#include "registry.h"
|
||||||
|
|
||||||
extern int noPseudoramiXExtension;
|
extern int noPseudoramiXExtension;
|
||||||
extern int noPanoramiXExtension;
|
extern int noPanoramiXExtension;
|
||||||
|
@ -147,6 +148,19 @@ void PseudoramiXExtensionInit(int argc, char *argv[])
|
||||||
PANORAMIX_PROTOCOL_NAME);
|
PANORAMIX_PROTOCOL_NAME);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RegisterRequestName(extEntry->base, X_PanoramiXQueryVersion,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":QueryVersion");
|
||||||
|
RegisterRequestName(extEntry->base, X_PanoramiXGetState,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":GetState");
|
||||||
|
RegisterRequestName(extEntry->base, X_PanoramiXGetScreenCount,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":GetScreenCount");
|
||||||
|
RegisterRequestName(extEntry->base, X_PanoramiXGetScreenSize,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":GetScreenSize");
|
||||||
|
RegisterRequestName(extEntry->base, X_XineramaIsActive,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":IsActive");
|
||||||
|
RegisterRequestName(extEntry->base, X_XineramaQueryScreens,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":QueryScreens");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,7 @@
|
||||||
#include "randrstr.h"
|
#include "randrstr.h"
|
||||||
#include "swaprep.h"
|
#include "swaprep.h"
|
||||||
#include <X11/extensions/panoramiXproto.h>
|
#include <X11/extensions/panoramiXproto.h>
|
||||||
|
#include "registry.h"
|
||||||
|
|
||||||
#define RR_XINERAMA_MAJOR_VERSION 1
|
#define RR_XINERAMA_MAJOR_VERSION 1
|
||||||
#define RR_XINERAMA_MINOR_VERSION 1
|
#define RR_XINERAMA_MINOR_VERSION 1
|
||||||
|
@ -423,6 +424,8 @@ RRXineramaResetProc(ExtensionEntry* extEntry)
|
||||||
void
|
void
|
||||||
RRXineramaExtensionInit(void)
|
RRXineramaExtensionInit(void)
|
||||||
{
|
{
|
||||||
|
ExtensionEntry *extEntry;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef PANORAMIX
|
||||||
if(!noPanoramiXExtension)
|
if(!noPanoramiXExtension)
|
||||||
return;
|
return;
|
||||||
|
@ -436,9 +439,22 @@ RRXineramaExtensionInit(void)
|
||||||
if (screenInfo.numScreens > 1)
|
if (screenInfo.numScreens > 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
(void) AddExtension(PANORAMIX_PROTOCOL_NAME, 0,0,
|
extEntry = AddExtension(PANORAMIX_PROTOCOL_NAME, 0, 0,
|
||||||
ProcRRXineramaDispatch,
|
ProcRRXineramaDispatch,
|
||||||
SProcRRXineramaDispatch,
|
SProcRRXineramaDispatch,
|
||||||
RRXineramaResetProc,
|
RRXineramaResetProc,
|
||||||
StandardMinorOpcode);
|
StandardMinorOpcode);
|
||||||
|
|
||||||
|
RegisterRequestName(extEntry->base, X_PanoramiXQueryVersion,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":QueryVersion");
|
||||||
|
RegisterRequestName(extEntry->base, X_PanoramiXGetState,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":GetState");
|
||||||
|
RegisterRequestName(extEntry->base, X_PanoramiXGetScreenCount,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":GetScreenCount");
|
||||||
|
RegisterRequestName(extEntry->base, X_PanoramiXGetScreenSize,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":GetScreenSize");
|
||||||
|
RegisterRequestName(extEntry->base, X_XineramaIsActive,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":IsActive");
|
||||||
|
RegisterRequestName(extEntry->base, X_XineramaQueryScreens,
|
||||||
|
PANORAMIX_PROTOCOL_NAME ":QueryScreens");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue