There is no problem about having a single large desktop... but I need to use nvidia driver and as far as I understand it does not support Rand1.2.<div><br></div><div>The race condition is caused because xf86InputSetScreen is not thread safe?</div>

<div><br></div><div>About Peter Korsgaard matrix... where can I found it to take a look?</div><div><br></div><div>Thanks.</div><div><br><div class="gmail_quote">On Wed, Jun 16, 2010 at 3:21 AM, Peter Hutterer <span dir="ltr">&lt;<a href="mailto:peter.hutterer@who-t.net">peter.hutterer@who-t.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Mon, Jun 14, 2010 at 05:10:40PM +0200, Julian Ortiz wrote:<br>
&gt; Hello,<br>
&gt; After looking for a way to make a touch screen works only in its display<br>
&gt; (with nvidia configured as different XScreens) with no luck at all, I<br>
&gt; started to look at the input modules source. I realizes that<br>
&gt; the proprietary elo module calls to xf86XInputSetScreen, the function name<br>
&gt; seems promising, so I just patch the evdev module to support several screens<br>
&gt; by configuration and to call xf86InputSetScreen in the EvdevReadInput just<br>
&gt; before the EvdevProcessEvent.<br>
&gt;<br>
&gt; The result seems to work but the behavior is very erratic and sometimes the<br>
&gt; mouse/touch/keyboard get freezes and I need to restart X. And more strange,<br>
&gt; after launch several OpenGL application the performance drops so, so much<br>
&gt; (obviously without the patch it doesn&#39;t happen)<br>
&gt;<br>
&gt; Is xf86InputSetScreen the best approach to handle this?<br>
<br>
</div>There&#39;s a race condition that can be triggered by xf86InputSetScreen() that<br>
ends up with a cursor jumping indefinitely between the two screens. This is<br>
likely the freeze you&#39;re seeing.<br>
<br>
There&#39;s unfortunately no good way to bind the device to a single screen<br>
right now. Peter Korsgaard input transformation matrix allows it for a<br>
RandR 1.2 setup but not for multiple protocol screens.<br>
<br>
Cheers,<br>
<font color="#888888">  Peter<br>
</font><div><div></div><div class="h5"><br>
&gt; Trying to find the module responsible for the mouse switch between different<br>
&gt; display I saw references to something called SilkenMouse, but I can&#39;t find<br>
&gt; any documentation about what is this. Any idea?<br>
</div></div></blockquote></div><br></div>