Problem with touchscreen events and grabs

Timo Aaltonen tjaalton at ubuntu.com
Mon Oct 22 04:33:01 PDT 2012


On 22.10.2012 09:47, Peter Hutterer wrote:
> On Tue, Oct 16, 2012 at 09:54:23PM -0400, Thomas Jaeger wrote:
>> I've noticed an issue with grabs as well, not sure if it's related to
>> this one.  It's really easy to reproduce, though:  All you need is a
>> little test client that passively grabs button 1 on the MD (like the one
>> attached).  A passive core grab will do as well.  What happens is that
>> (1) clients selecting for core events will receive emulated pointer
>> events despite the passive grab and (2) sometimes ButtonRelease events
>> go missing (this goes both for the grabbing and non-grabbing clients,
>> but not necessarily at the same time).
> 
> btw, did you file a bug for this one? I've got a preliminary patch
> (attached) but I'm not sure of the side-effects yet.

For me the patch only made it faster to lose control of the desktop,
grab.c still shows press/release events but button1 seems stuck. Testing
with unity on ubuntu 12.10 the first touch on the launcher breaks it. If
I launch apps remotely without the launcher, everything seems to work fine.


-- 
t


More information about the xorg-devel mailing list