I found the problem. I did not use the vtkFullScreenRenderWindow class, which did not display in full screen, resulting in the wrong coordinates calculated by the eventToWindowXY method.
I found the problem. I did not use the vtkFullScreenRenderWindow class, which did not display in full screen, resulting in the wrong coordinates calculated by the eventToWindowXY method.