[Dx-packages] [Bug 1307701] Re: Unity does not get touch events when QML apps running

2014-04-24 Thread Daniel d'Andrada
** Summary changed: - Unity does not get touch events when SDK apps running + Unity does not get touch events when QML apps running -- You received this bug notification because you are a member of DX Packages, which is subscribed to unity in Ubuntu. Matching subscriptions: dx-packages

[Dx-packages] [Bug 1307701] Re: Unity does not get touch events when QML apps running

2014-04-24 Thread Daniel d'Andrada
On a side note: multitouch in xorg is very problematic. Just now I had to reboot my xps touch screen laptop because the mouse pointer emulation logic no longer worked (pointer simply disappeared on touch). In another attempt playing with multitouch, xserver simply crashed and I was sent back to

[Dx-packages] [Bug 1307701] Re: Unity does not get touch events when QML apps running

2014-04-24 Thread Daniel d'Andrada
hmm, and pointer emulation actually still works for other apps when their windows are focused. You just can't focus them by tapping them. -- You received this bug notification because you are a member of DX Packages, which is subscribed to unity in Ubuntu. Matching subscriptions: dx-packages

[Dx-packages] [Bug 1307701] Re: Unity does not get touch events when QML apps running

2014-04-24 Thread Daniel d'Andrada
So, when you run a QML app and tap on it, it seems that the mouse pointer emulation dies but multitouch events still flow normally as unity still responds to 3-finger (window drags, alt-tab switch) and 4-finger (show/hide dash, launcher drag) gestures -- You received this bug notification

[Dx-packages] [Bug 1307701] Re: Unity does not get touch events when QML apps running

2014-04-28 Thread Daniel d'Andrada
** Changed in: unity (Ubuntu) Assignee: Stephen M. Webb (bregma) = Daniel d'Andrada (dandrader) -- You received this bug notification because you are a member of DX Packages, which is subscribed to unity in Ubuntu. Matching subscriptions: dx-packages https://bugs.launchpad.net/bugs/1307701

[Dx-packages] [Bug 1307701] Re: Unity does not get touch events when QML apps running

2014-04-30 Thread Daniel d'Andrada
Any QML application at all will do (such as Item {width:600;height:600}) What seems to be happening, from what I've learned so far: - user touches on a qml application - xserver sends the resulting touch events to both the qmlscene and to compiz/unity7 - xserver offers ownership to

[Dx-packages] [Bug 1307701] Re: Unity does not get touch events when QML apps running

2014-05-05 Thread Daniel d'Andrada
One thing that smells fishy is that the qml app starts getting touch events even before compiz/unity7. I think that this should not happen as the qml app does not subscribe for ownership events (unlike compiz/unity7) and ownership is offered to compiz/unity7. So the qml app should only get touch

[Dx-packages] [Bug 1307701] Re: Unity does not get touch events when QML apps running

2014-05-06 Thread Daniel d'Andrada
On my system the touchscreen keeps working after using a QML app. It still gets gestures (e.g 3 fingers on the screen) but it won't work on some windows. Furthermore, I can't drag windows by the decoration any more. Multifinger gestures keep working because they do not depend on pointer/mouse

[Dx-packages] [Bug 1307701] Re: xserver mouse pointer emulation from touch breaks with QML app.

2014-05-06 Thread Daniel d'Andrada
Took the liberty of correcting the bug title as unity does keep getting touch events. It's the xserver mouse pointer emulation from touch events that breaks badly. ** Also affects: xorg-server (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you

[Dx-packages] [Bug 1307701] Re: xserver mouse pointer emulation from touch breaks with QML app.

2014-05-06 Thread Daniel d'Andrada
Attaching detailed xserver log. The following steps were taken: 1- sudo restart lightdm (to restart the X server. so that de have a clean slate) 2- run a very simple qml app with qmlscene 3- tapped on that qmlscene window (touch id 1) 4- tapped on the desktop area (nautilus) (touch id 2) 5- sudo

[Dx-packages] [Bug 1307701] Re: xserver mouse pointer emulation from touch breaks with QML app.

2014-05-06 Thread Daniel d'Andrada
xserver packages I used to take the logs above. ** Attachment added: xserver debian packages with detailed logging of input events https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1307701/+attachment/4106288/+files/xorg_debug_packages.zip -- You received this bug notification because

[Dx-packages] [Bug 1307701] Re: xserver mouse pointer emulation from touch breaks with QML app.

2014-05-06 Thread Daniel d'Andrada
Is there a specific reason for calling XISelectEvents() for each slave vs using XIAllMasterDevices in QXcbConnection::xi2Select() in Qt? Would have to dig into Qt code to tell that. But my guess is that because it exposes QTouchDevice objects to applications. For every QTouchEvent you can get

[Dx-packages] [Bug 1307701] Re: xserver mouse pointer emulation from touch breaks with QML app.

2014-05-06 Thread Daniel d'Andrada
And here's the upstream bug I reported: https://bugs.freedesktop.org/show_bug.cgi?id=78345 ** Bug watch added: freedesktop.org Bugzilla #78345 https://bugs.freedesktop.org/show_bug.cgi?id=78345 -- You received this bug notification because you are a member of DX Packages, which is subscribed

[Dx-packages] [Bug 1307701] Re: xserver mouse pointer emulation from touch breaks with QML app.

2014-05-07 Thread Daniel d'Andrada
Qt still XISelectEvents my N-Trig Pen stylus and N-Trig Pen eraser slave devices though. But thankfully no events come from them and thus peace is maintained :) ** Changed in: unity (Ubuntu) Status: In Progress = Invalid -- You received this bug notification because you are a member of

[Dx-packages] [Bug 1307701] Re: xserver mouse pointer emulation from touch breaks with QML app.

2014-05-07 Thread Daniel d'Andrada
I confirm that the Qt from https://launchpad.net/~canonical-x/+archive/x-staging does XISelectEvents on the master pointer (instead of the touchscreen slave device, as previously) and that the resulting behavior of the xserver is good. Ie., touch ownership mechanics work properly and mouse pointer