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

2014-05-06 Thread Alberto Milone
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. -- You received this bug notification because you are a member of Ubuntu Bugs,

[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

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

2014-05-05 Thread Maarten Lankhorst
dandrader: That seems useful for making a testcase, thanks! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1307701 Title: Unity does not get touch events when QML apps running To manage

[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

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

2014-05-02 Thread Alberto Milone
@Daniel, have you tried adding some qDebug() lines in the QT5 libraries to see if we actually get the touch events and finally ungrab the device? (the code is in src/plugins/platforms/xcb/qxcbconnection_xi2.cpp) Also, it would be interesting to see what XIGrabDevice and XIUngrabDevice return. --

[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

[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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1307701 Title: Unity does not get touch events

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

2014-04-25 Thread Stephen M. Webb
The problem does not occur in a Gnome Flashback (Compiz) session, so it is evidently a result of the interaction between the XInput2 touch grabs used in Unity 7 (through Geis), the passive Xinput touch subscriptions in Qt, and the pointer emulation in x.org. Multi-touch pointer emulation in

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

2014-04-25 Thread Stephen M. Webb
Here is a test setup: (1) install ubuntu-clock app (2) modify /usr/share/gnome-session/sessions/ubuntu.session to remove the 'compiz;' entry so compiz gets started by upstart instead of gnome-session (3) modify /usr/share/upstart/session/unity7.conf to add the following lines in the pre-start

[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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1307701 Title:

[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

[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

[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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1307701 Title: