2008/10/18 Peter Harris <span dir="ltr">&lt;<a href="mailto:peter.harris@hummingbird.com">peter.harris@hummingbird.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

I suspect you want something like:<br>
self.conn.randr.GetCrtcInfo(resources.crtcs[it], resources.config_timestamp)<br>
<div class="Ih2E3d"><br>
&gt; and the following error:<br>
&gt; xcb.randr.BadCrtc: &lt;xcb.randr.CrtcError object at 0x9fd0b6c&gt;<br>
<br>
</div>...since whatever an object passed through &#39;I&#39; resolves to, it&#39;s not an<br>
XID that the server recognizes.<br>
<br>
Peter Harris<br>
<font color="#888888"></font></blockquote></div><span class="HcCDpe"><br>Ok, I did as you said and I called that function in the following way (note:</span><span class="HcCDpe"> <a href="http://crtc.id">crtc.id</a></span><span class="HcCDpe"> is equal to r</span>esources.crtcs[it]):<br>
<span class="HcCDpe"><br>cookie = self.conn.randr.GetCrtcInfo(<a href="http://crtc.id">crtc.id</a>, </span><span class="HcCDpe">r</span>esources<span class="HcCDpe">.config_timestamp)<br>info = cookie.reply()<br><br>but I get this:<br>
File &quot;/usr/local/lib/python2.5/site-packages/xcb/randr.py&quot;, line 227, in __init__<br>&nbsp;&nbsp;&nbsp; self.outputs = xcb.List(self, count, self.num_outputs, &#39;I&#39;, 4)<br>xcb.Exception: Protocol object buffer too short.<br>
<br>This is weird as I have no problem when I call </span><span class="HcCDpe">GetOutputInfo()</span>:<br><span class="HcCDpe">cookie = self.conn.randr.GetOutputInfo(<a href="http://output.id">output.id</a>, </span><span class="HcCDpe">r</span>esources<span class="HcCDpe">.config_timestamp)<br>
<br>I have tried the latest release of xpyb (1.0) too but it doesn&#39;t solve the problem.<br><br>Any ideas?<br></span>