[Xcb-commit] Branch 'xspec' - 2 commits - xcb-proto
Alp Toker
alp at kemper.freedesktop.org
Thu Mar 30 09:56:41 PST 2006
xcb-proto/src/extensions/randr.xml | 5 ++
xcb-proto/src/extensions/res.xml | 2 -
xcb-proto/src/extensions/xf86dri.xml | 4 ++
xcb-proto/src/extensions/xinerama.xml | 61 ++++++++++++++++++++++++++++++++++
4 files changed, 71 insertions(+), 1 deletion(-)
New commits:
diff-tree f3b535d9070e71ac703727e75eb77f7310da2910 (from 079d37b524cfc3a601485ec49d89b90cb142885c)
Author: Alp Toker <alp at atoker.com>
Date: Thu Mar 30 18:56:21 2006 +0100
Start work on Xinerama extension
diff --git a/xcb-proto/src/extensions/xinerama.xml b/xcb-proto/src/extensions/xinerama.xml
new file mode 100644
index 0000000..84b65df
--- /dev/null
+++ b/xcb-proto/src/extensions/xinerama.xml
@@ -0,0 +1,61 @@
+<!-- FIXME: complete, validate and add versioning info -->
+<extension header="xinerama" xname="XINERAMA" name="Xinerama" version="1.1">
+ <struct name="ScreenInfo">
+ <field type="Point" name="origin" />
+ <field type="Size" />
+ </struct>
+ <!-- PanoramiX -->
+ <request name="QueryVersion" number="0">
+ <field type="Version8" />
+ <reply>
+ <pad bytes="1" />
+ <field type="Version16" />
+ </reply>
+ </request>
+ <request name="GetState" number="1">
+ <field type="Window" name="window" />
+ <reply>
+ <field type="byte" name="state" />
+ <field type="Window" name="window" />
+ <pad bytes="20" />
+ </reply>
+ </request>
+ <request name="GetScreenCount" number="2">
+ <field type="Window" name="window" />
+ <reply>
+ <field type="byte" name="screen-count" />
+ <field type="Window" name="window" />
+ <pad bytes="20" />
+ </reply>
+ </request>
+ <request name="GetScreenSize" number="3">
+ <field type="Window" name="window" />
+ <field type="CARD32" name="screen" />
+ <reply>
+ <pad bytes="1" />
+ <field type="CARD32" name="width" />
+ <field type="CARD32" name="height" />
+ <field type="Window" name="window" />
+ <field type="CARD32" name="screen" />
+ <pad bytes="2" />
+ </reply>
+ </request>
+ <!-- Xinerama -->
+ <request name="IsActive" number="4">
+ <reply>
+ <pad bytes="1" />
+ <field type="CARD32" name="state" />
+ <pad bytes="20" />
+ </reply>
+ </request>
+ <request name="QueryScreens" number="5">
+ <reply>
+ <pad bytes="1" />
+ <field type="CARD32" name="number" />
+ <pad bytes="20" />
+ <list type="ScreenInfo" name="screen-infos">
+ <fieldref>number</fieldref>
+ </list>
+ </reply>
+ </request>
+</extension>
diff-tree 079d37b524cfc3a601485ec49d89b90cb142885c (from 03092dd470ba105d517bf1cfbf3d3a8ed219c5ac)
Author: Alp Toker <alp at atoker.com>
Date: Thu Mar 30 18:55:35 2006 +0100
Add more versioning info, comments
Work towards real versioning
diff --git a/xcb-proto/src/extensions/randr.xml b/xcb-proto/src/extensions/randr.xml
index 9af1a03..10b702d 100644
--- a/xcb-proto/src/extensions/randr.xml
+++ b/xcb-proto/src/extensions/randr.xml
@@ -34,6 +34,7 @@ authorization from the authors.
<item name="rotate90" />
<item name="rotate180" />
<item name="rotate270" />
+ <!-- new in 1.0 protocol, to allow reflection of screen -->
<item name="reflect-x" />
<item name="reflect-y" />
</mask>
@@ -53,6 +54,8 @@ authorization from the authors.
<pad bytes="16" />
</reply>
</request>
+ <!-- we skip 1 to make old clients fail pretty immediately -->
+ <!-- <request number="1" /> -->
<!-- This is for the 1.1 version request. I don't believe we need to specify a 1.0 request as few things used randr 1.0. The only difference is the removal of refresh and padding I think. BEWARE: the docs lie! -->
<request name="SetScreenConfig" number="2">
<field type="Window" name="drawable" />
@@ -77,6 +80,8 @@ authorization from the authors.
<item name="invalid-time" />
<item name="failed" />
</enum>
+ <!-- TODO: deprecated -->
+ <!-- <request name="ScreenChangeSelectInput" number="3" /> -->
<request name="SelectInput" number="4">
<field type="Window" name="window" />
<field type="CARD16" name="enable" />
diff --git a/xcb-proto/src/extensions/res.xml b/xcb-proto/src/extensions/res.xml
index 6d75a0c..c92005a 100644
--- a/xcb-proto/src/extensions/res.xml
+++ b/xcb-proto/src/extensions/res.xml
@@ -26,7 +26,7 @@ institutions shall not be used in advert
sale, use or other dealings in this Software without prior written
authorization from the authors.
-->
-<extension header="res" xname="X-Resource" name="Res">
+<extension header="res" xname="X-Resource" name="Res" version="1.0">
<struct name="Client">
<field type="CARD32" name="resource-base" />
<field type="CARD32" name="resource-mask" />
diff --git a/xcb-proto/src/extensions/xf86dri.xml b/xcb-proto/src/extensions/xf86dri.xml
index c209b87..785f04e 100644
--- a/xcb-proto/src/extensions/xf86dri.xml
+++ b/xcb-proto/src/extensions/xf86dri.xml
@@ -150,4 +150,8 @@ authorization from the authors.
<field type="CARD32" name="authenticated" />
</reply>
</request>
+ <!-- deprecated -->
+ <!-- <request name="OpenFullScreen" number="12"/> -->
+ <!-- deprecated -->
+ <!-- <request name="CloseFullScreen" number="13"/> -->
</extension>
More information about the xcb-commit
mailing list