diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 0830afcd..8793293a 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -48,7 +48,8 @@
The callback_data passed in the callback is the event serial.
-
+
@@ -57,7 +58,8 @@
to list and bind the global objects available from the
compositor.
-
+
@@ -129,8 +131,8 @@
Binds a new, client-created object to the server using the
specified name as the identifier.
-
-
+
+
@@ -187,14 +189,14 @@
Ask the compositor to create a new surface.
-
+
Ask the compositor to create a new region.
-
+
@@ -224,12 +226,12 @@
a buffer from it.
-
-
-
-
-
-
+
+
+
+
+
+
@@ -250,7 +252,7 @@
used to make the pool bigger.
-
+
@@ -283,68 +285,69 @@
All renderers should support argb8888 and xrgb8888 but any other
formats are optional and may not be supported by the particular
renderer in use.
+
+ The drm format codes match the #defines in drm_fourcc.h.
+ The formats actually supported by the compositor will be
+ reported by the format event.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -356,9 +359,9 @@
descriptor, to use as backing memory for the pool.
-
-
-
+
+
+
@@ -446,8 +449,8 @@
conjunction with wl_data_source.action for feedback.
-
-
+
+
@@ -468,8 +471,8 @@
clients may preemptively fetch data or examine it more closely to
determine acceptance.
-
-
+
+
@@ -539,8 +542,8 @@
This request can only be made on drag-and-drop offers, a protocol error
will be raised otherwise.
-
-
+
+
@@ -615,7 +618,7 @@
advertised to targets. Can be called several times to offer
multiple types.
-
+
@@ -689,7 +692,7 @@
wl_data_device.start_drag. Attempting to use the source other than
for drag-and-drop will raise a protocol error.
-
+
@@ -792,10 +795,10 @@
as an icon ends, the current and pending input regions become
undefined, and the wl_surface is unmapped.
-
-
-
-
+
+
+
+
@@ -805,8 +808,8 @@
To unset the selection, set the source to NULL.
-
-
+
+
@@ -922,15 +925,15 @@
Create a new data source.
-
+
Create a new data device for a given seat.
-
-
+
+
@@ -961,10 +964,10 @@
or drags initiated with other buttons than BTN_LEFT to specific
actions (e.g. "ask").
-
-
-
-
+
+
+
+
@@ -989,8 +992,8 @@
Only one shell surface can be associated with a given surface.
-
-
+
+
@@ -1036,15 +1039,15 @@
use this information to adapt its behavior, e.g. choose
an appropriate cursor image.
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
@@ -1087,10 +1090,10 @@
The flags argument controls details of the transient behaviour.
-
-
-
-
+
+
+
+
@@ -1141,9 +1144,10 @@
with the dimensions for the output on which the surface will
be made fullscreen.
-
-
-
+
+
+
@@ -1171,10 +1175,10 @@
-
-
-
-
+
+
+
+
@@ -1198,7 +1202,8 @@
The details depend on the compositor implementation.
-
+
@@ -1211,7 +1216,7 @@
The string must be encoded in UTF-8.
-
+
@@ -1223,7 +1228,7 @@
file name (or the full path if it is a non-standard location) of
the application's .desktop file as the class.
-
+
@@ -1369,9 +1374,10 @@
following wl_surface.commit will remove the surface content.
-
-
-
+
+
+
@@ -1398,10 +1404,10 @@
and is probably the preferred and intuitive way of doing this.
-
-
-
-
+
+
+
+
@@ -1440,7 +1446,7 @@
milliseconds, with an undefined base.
-
+
@@ -1471,7 +1477,8 @@
region to be set to empty.
-
+
@@ -1500,7 +1507,8 @@
to infinite.
-
+
@@ -1579,7 +1587,8 @@
wl_output.transform enum the invalid_transform protocol error
is raised.
-
+
@@ -1610,7 +1619,8 @@
If scale is not positive the invalid_scale protocol error is
raised.
-
+
@@ -1649,10 +1659,10 @@
after receiving the wl_surface.commit.
-
-
-
-
+
+
+
+
@@ -1714,7 +1724,7 @@
It is a protocol violation to issue this request on a seat that has
never had the pointer capability.
-
+
@@ -1727,7 +1737,7 @@
It is a protocol violation to issue this request on a seat that has
never had the keyboard capability.
-
+
@@ -1740,7 +1750,7 @@
It is a protocol violation to issue this request on a seat that has
never had the touch capability.
-
+
@@ -1817,7 +1827,8 @@
-
+
@@ -1891,8 +1902,8 @@
Describes the axis types of scroll events.
-
-
+
+
@@ -2279,12 +2290,12 @@
This enumeration describes how the physical
pixels on an output are laid out.
-
-
-
-
-
-
+
+
+
+
+
+
@@ -2302,14 +2313,14 @@
surfaces.
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -2434,10 +2445,10 @@
Add the specified rectangle to the region.
-
-
-
-
+
+
+
+
@@ -2445,10 +2456,10 @@
Subtract the specified rectangle from the region.
-
-
-
-
+
+
+
+