summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-06-20 20:34:55 -0400
committerKristian Høgsberg <krh@bitplanet.net>2011-06-21 11:24:27 -0400
commitbfea3d6befdb688d5354e6f15a9400ea637febf9 (patch)
treecd3e47b246d6c7a734f6dd705f3db85902c77705
parentaae9f214e5f0d8d1deac4816fe40f76b2cf84f55 (diff)
Add more protocol for communicating screen geometry
-rw-r--r--protocol/wayland.xml27
1 files changed, 26 insertions, 1 deletions
diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index bf21425..acaa706 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -469,12 +469,37 @@
published as global during start up, or when a screen is hot
plugged. -->
<interface name="wl_output" version="1">
- <!-- Notification about the screen size. -->
+
+ <enum name="subpixel">
+ <entry name="unknown" value="0"/>
+ <entry name="none" value="1"/>
+ <entry name="horizontal_rgb" value="2"/>
+ <entry name="horizontal_bgr" value="3"/>
+ <entry name="vertical_rgb" value="4"/>
+ <entry name="vertical_bgr" value="5"/>
+ </enum>
+
<event name="geometry">
<arg name="x" type="int"/>
<arg name="y" type="int"/>
+ <arg name="physical_width" type="int"/>
+ <arg name="physical_height" type="int"/>
+ <arg name="subpixel" type="int"/>
+ <arg name="make" type="string"/>
+ <arg name="model" type="string"/>
+ </event>
+
+ <!-- Values for the flags bitfield of the mode event. -->
+ <enum name="mode">
+ <entry name="current" value="0x1"/>
+ <entry name="preferred" value="0x2"/>
+ </enum>
+
+ <event name="mode">
+ <arg name="flags" type="uint"/>
<arg name="width" type="int"/>
<arg name="height" type="int"/>
+ <arg name="refresh" type="int"/>
</event>
</interface>