2008/10/18 Peter Harris <span dir="ltr"><<a href="mailto:peter.harris@hummingbird.com">peter.harris@hummingbird.com</a>></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>
> and the following error:<br>
> xcb.randr.BadCrtc: <xcb.randr.CrtcError object at 0x9fd0b6c><br>
<br>
</div>...since whatever an object passed through 'I' resolves to, it'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 "/usr/local/lib/python2.5/site-packages/xcb/randr.py", line 227, in __init__<br> self.outputs = xcb.List(self, count, self.num_outputs, 'I', 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't solve the problem.<br><br>Any ideas?<br></span>