Something
public text v1 · immutableQPoint QCursor::pos()
{
Window root;
Window child;
int root_x, root_y, win_x, win_y;
uint buttons;
Display* dpy = QPaintDevice::x11AppDisplay();
for ( int i = 0; i < ScreenCount( dpy ); i++ ) {
· if ( XQueryPointer( dpy, QPaintDevice::x11AppRootWindow( i ), &root, &child,
· · · &root_x, &root_y, &win_x, &win_y, &buttons ) )
· return QPoint( root_x, root_y );
}
return QPoint();
}