summaryrefslogtreecommitdiff
path: root/pseudoramiX
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2012-04-26 14:04:03 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-04-27 14:36:51 +0100
commitd3fae865c57f670986776695d13a194b4822c770 (patch)
treef57f48be83190a152fb6561c9aa5970198ade5dd /pseudoramiX
parentec3c8d27f3fa9fa472aa730e79d3cb914107c6cd (diff)
parent38e73f7fc29fe8e9defa8a0516a50ac3a84e10c2 (diff)
Merge tag 'xorg-server-1.12.1' into cygwin-release-1.12
xorg-server-1.12.1 Conflicts: dix/main.c glx/glapi.c glx/glprocs.h glx/glthread.c hw/dmx/dmxinit.c hw/vfb/InitOutput.c hw/xnest/Init.c hw/xwin/InitOutput.c hw/xwin/glx/winpriv.c hw/xwin/win.h hw/xwin/winblock.c hw/xwin/winclipboard.h hw/xwin/winclipboardthread.c hw/xwin/winclipboardunicode.c hw/xwin/winclipboardwndproc.c hw/xwin/winclipboardwrappers.c hw/xwin/winclipboardxevents.c hw/xwin/wincreatewnd.c hw/xwin/winengine.c hw/xwin/winerror.c hw/xwin/winglobals.c hw/xwin/winkeyhook.c hw/xwin/winmultiwindowicons.c hw/xwin/winmultiwindowwindow.c hw/xwin/winmultiwindowwm.c hw/xwin/winmultiwindowwndproc.c hw/xwin/winprefs.c hw/xwin/winprefs.h hw/xwin/winprocarg.c hw/xwin/winshadddnl.c hw/xwin/winwakeup.c hw/xwin/winwin32rootlesswindow.c hw/xwin/winwindow.h hw/xwin/winwindowswm.c mi/miinitext.c os/connection.c os/osinit.c os/utils.c pseudoramiX/pseudoramiX.c xkb/ddxList.c
Diffstat (limited to 'pseudoramiX')
-rw-r--r--pseudoramiX/pseudoramiX.c120
-rw-r--r--pseudoramiX/pseudoramiX.h6
2 files changed, 75 insertions, 51 deletions
diff --git a/pseudoramiX/pseudoramiX.c b/pseudoramiX/pseudoramiX.c
index 7cf4ec75a..59c1e758f 100644
--- a/pseudoramiX/pseudoramiX.c
+++ b/pseudoramiX/pseudoramiX.c
@@ -49,26 +49,41 @@ Equipment Corporation.
Bool noPseudoramiXExtension = FALSE;
-extern int ProcPanoramiXQueryVersion (ClientPtr client);
+extern int
+ProcPanoramiXQueryVersion(ClientPtr client);
-static void PseudoramiXResetProc(ExtensionEntry *extEntry);
-
-static int ProcPseudoramiXQueryVersion(ClientPtr client);
-static int ProcPseudoramiXGetState(ClientPtr client);
-static int ProcPseudoramiXGetScreenCount(ClientPtr client);
-static int ProcPseudoramiXGetScreenSize(ClientPtr client);
-static int ProcPseudoramiXIsActive(ClientPtr client);
-static int ProcPseudoramiXQueryScreens(ClientPtr client);
-static int ProcPseudoramiXDispatch(ClientPtr client);
+static void
+PseudoramiXResetProc(ExtensionEntry *extEntry);
-static int SProcPseudoramiXQueryVersion(ClientPtr client);
-static int SProcPseudoramiXGetState(ClientPtr client);
-static int SProcPseudoramiXGetScreenCount(ClientPtr client);
-static int SProcPseudoramiXGetScreenSize(ClientPtr client);
-static int SProcPseudoramiXIsActive(ClientPtr client);
-static int SProcPseudoramiXQueryScreens(ClientPtr client);
-static int SProcPseudoramiXDispatch(ClientPtr client);
+static int
+ProcPseudoramiXQueryVersion(ClientPtr client);
+static int
+ProcPseudoramiXGetState(ClientPtr client);
+static int
+ProcPseudoramiXGetScreenCount(ClientPtr client);
+static int
+ProcPseudoramiXGetScreenSize(ClientPtr client);
+static int
+ProcPseudoramiXIsActive(ClientPtr client);
+static int
+ProcPseudoramiXQueryScreens(ClientPtr client);
+static int
+ProcPseudoramiXDispatch(ClientPtr client);
+static int
+SProcPseudoramiXQueryVersion(ClientPtr client);
+static int
+SProcPseudoramiXGetState(ClientPtr client);
+static int
+SProcPseudoramiXGetScreenCount(ClientPtr client);
+static int
+SProcPseudoramiXGetScreenSize(ClientPtr client);
+static int
+SProcPseudoramiXIsActive(ClientPtr client);
+static int
+SProcPseudoramiXQueryScreens(ClientPtr client);
+static int
+SProcPseudoramiXDispatch(ClientPtr client);
typedef struct {
int x;
@@ -127,10 +142,10 @@ PseudoramiXAddScreen(int x, int y, int w, int h)
s->h = h;
}
-
// Initialize PseudoramiX.
// Copied from PanoramiXExtensionInit
-void PseudoramiXExtensionInit(int argc, char *argv[])
+void
+PseudoramiXExtensionInit(int argc, char *argv[])
{
Bool success = FALSE;
ExtensionEntry *extEntry;
@@ -157,7 +172,8 @@ void PseudoramiXExtensionInit(int argc, char *argv[])
StandardMinorOpcode);
if (!extEntry) {
ErrorF("PseudoramiXExtensionInit(): AddExtension failed\n");
- } else {
+ }
+ else {
pseudoramiXGeneration = serverGeneration;
success = TRUE;
}
@@ -170,34 +186,34 @@ void PseudoramiXExtensionInit(int argc, char *argv[])
}
}
-
-void PseudoramiXResetScreens(void)
+void
+PseudoramiXResetScreens(void)
{
TRACE;
pseudoramiXNumScreens = 0;
}
-
-static void PseudoramiXResetProc(ExtensionEntry *extEntry)
+static void
+PseudoramiXResetProc(ExtensionEntry *extEntry)
{
TRACE;
PseudoramiXResetScreens();
}
-
// was PanoramiX
-static int ProcPseudoramiXQueryVersion(ClientPtr client)
+static int
+ProcPseudoramiXQueryVersion(ClientPtr client)
{
TRACE;
return ProcPanoramiXQueryVersion(client);
}
-
// was PanoramiX
-static int ProcPseudoramiXGetState(ClientPtr client)
+static int
+ProcPseudoramiXGetState(ClientPtr client)
{
REQUEST(xPanoramiXGetStateReq);
WindowPtr pWin;
@@ -225,9 +241,9 @@ static int ProcPseudoramiXGetState(ClientPtr client)
return Success;
}
-
// was PanoramiX
-static int ProcPseudoramiXGetScreenCount(ClientPtr client)
+static int
+ProcPseudoramiXGetScreenCount(ClientPtr client)
{
REQUEST(xPanoramiXGetScreenCountReq);
WindowPtr pWin;
@@ -255,9 +271,9 @@ static int ProcPseudoramiXGetScreenCount(ClientPtr client)
return Success;
}
-
// was PanoramiX
-static int ProcPseudoramiXGetScreenSize(ClientPtr client)
+static int
+ProcPseudoramiXGetScreenSize(ClientPtr client)
{
REQUEST(xPanoramiXGetScreenSizeReq);
WindowPtr pWin;
@@ -296,9 +312,9 @@ static int ProcPseudoramiXGetScreenSize(ClientPtr client)
return Success;
}
-
// was Xinerama
-static int ProcPseudoramiXIsActive(ClientPtr client)
+static int
+ProcPseudoramiXIsActive(ClientPtr client)
{
/* REQUEST(xXineramaIsActiveReq); */
xXineramaIsActiveReply rep;
@@ -320,14 +336,16 @@ static int ProcPseudoramiXIsActive(ClientPtr client)
return Success;
}
-
// was Xinerama
-static int ProcPseudoramiXQueryScreens(ClientPtr client)
+static int
+ProcPseudoramiXQueryScreens(ClientPtr client)
{
/* REQUEST(xXineramaQueryScreensReq); */
xXineramaQueryScreensReply rep;
- DEBUG_LOG("noPseudoramiXExtension=%d, pseudoramiXNumScreens=%d\n", noPseudoramiXExtension, pseudoramiXNumScreens);
+ DEBUG_LOG("noPseudoramiXExtension=%d, pseudoramiXNumScreens=%d\n",
+ noPseudoramiXExtension,
+ pseudoramiXNumScreens);
REQUEST_SIZE_MATCH(xXineramaQueryScreensReq);
@@ -365,31 +383,33 @@ static int ProcPseudoramiXQueryScreens(ClientPtr client)
return Success;
}
-
// was PanoramiX
static int ProcPseudoramiXDispatch (ClientPtr client)
-{ REQUEST(xReq);
+{
+ REQUEST(xReq);
TRACE;
- switch (stuff->data)
- {
+ switch (stuff->data) {
case X_PanoramiXQueryVersion:
return ProcPseudoramiXQueryVersion(client);
+
case X_PanoramiXGetState:
return ProcPseudoramiXGetState(client);
+
case X_PanoramiXGetScreenCount:
return ProcPseudoramiXGetScreenCount(client);
+
case X_PanoramiXGetScreenSize:
return ProcPseudoramiXGetScreenSize(client);
+
case X_XineramaIsActive:
return ProcPseudoramiXIsActive(client);
+
case X_XineramaQueryScreens:
return ProcPseudoramiXQueryScreens(client);
}
return BadRequest;
}
-
-
static int
SProcPseudoramiXQueryVersion (ClientPtr client)
{
@@ -438,7 +458,6 @@ SProcPseudoramiXGetScreenSize(ClientPtr client)
return ProcPseudoramiXGetScreenSize(client);
}
-
static int
SProcPseudoramiXIsActive(ClientPtr client)
{
@@ -451,7 +470,6 @@ SProcPseudoramiXIsActive(ClientPtr client)
return ProcPseudoramiXIsActive(client);
}
-
static int
SProcPseudoramiXQueryScreens(ClientPtr client)
{
@@ -464,25 +482,29 @@ SProcPseudoramiXQueryScreens(ClientPtr client)
return ProcPseudoramiXQueryScreens(client);
}
-
static int
SProcPseudoramiXDispatch (ClientPtr client)
-{ REQUEST(xReq);
+{
+ REQUEST(xReq);
TRACE;
- switch (stuff->data)
- {
+ switch (stuff->data) {
case X_PanoramiXQueryVersion:
return SProcPseudoramiXQueryVersion(client);
+
case X_PanoramiXGetState:
return SProcPseudoramiXGetState(client);
+
case X_PanoramiXGetScreenCount:
return SProcPseudoramiXGetScreenCount(client);
+
case X_PanoramiXGetScreenSize:
return SProcPseudoramiXGetScreenSize(client);
+
case X_XineramaIsActive:
return SProcPseudoramiXIsActive(client);
+
case X_XineramaQueryScreens:
return SProcPseudoramiXQueryScreens(client);
}
diff --git a/pseudoramiX/pseudoramiX.h b/pseudoramiX/pseudoramiX.h
index df5010d1d..f41b5cbe4 100644
--- a/pseudoramiX/pseudoramiX.h
+++ b/pseudoramiX/pseudoramiX.h
@@ -4,6 +4,8 @@
extern int noPseudoramiXExtension;
-void PseudoramiXAddScreen(int x, int y, int w, int h);
+void
+PseudoramiXAddScreen(int x, int y, int w, int h);
void PseudoramiXExtensionInit(int argc, char *argv[]);
-void PseudoramiXResetScreens(void);
+void
+PseudoramiXResetScreens(void);