Quote Originally Posted by dzh1121 View Post
Goal is to capture the XI2 event for multiple cursor( for different mouse/keyboard)
Here's some relevant code. (I've check the has_xi2 for my display, and set the event mask in the MainWindow's constructor.
So what's the problem exactly? It seems Qt has nothing to do with your situation. For instance I don't think it supports more than one input focus at the same time.

BTW, what do you mean that the event is native. would you please show me the document you've seen?
By native event I mean an event generated by the native API (X11 in this case) and not Qt.

How do you intend to use the extra information provided by XInput2?