<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - screensaver notify event specification is incorrect"
href="https://bugs.freedesktop.org/show_bug.cgi?id=63158">63158</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>xcb@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>screensaver notify event specification is incorrect
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>xcb@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>raymond_w@zonnet.nl
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>Protocol
</td>
</tr>
<tr>
<th>Product</th>
<td>XCB
</td>
</tr></table>
<p>
<div>
<pre>screensaver.xml contains the following specification:
<event name="Notify" number="0">
<field type="CARD8" name="code"/>
<field type="BYTE" name="state"/> <!-- enum State -->
<pad bytes="1" />
<field type="CARD16" name="sequence_number"/>
<field type="TIMESTAMP" name="time"/>
<field type="WINDOW" name="root"/>
<field type="WINDOW" name="window"/>
<field type="BYTE" name="kind"/> <!-- enum Kind -->
<field type="BOOL" name="forced"/>
<pad bytes="14"/>
</event>
The sequence_number is added automatically when the struct type is generated
(but then it is called sequence). Similarly, the code field is what xcb calls
response_type. These fields should not be specified in the XML file. I also do
not know why the 1-byte padding is there (added for v1.1 extension update);
maybe to hide symptoms resulting from the duplicate fields?
This was pointed out when screensaver.xml was first submitted [1] but
apparently it has never been fixed; seems like I am the first to actually use
the screensaver extension with xcb.
[1] <a href="http://lists.freedesktop.org/archives/xcb/2005-July/000910.html">http://lists.freedesktop.org/archives/xcb/2005-July/000910.html</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>