[vtk-developers] swap interval and mouse input problems

Ben Boeckel ben.boeckel at kitware.com
Mon Nov 30 15:25:17 EST 2015


On Mon, Nov 30, 2015 at 12:33:46 -0700, Clinton Stimpson wrote:
> Thanks!  I had first expected a compression of mouse events, and was confused 
> when I saw this problem.  A fix in Qt would be nice.

The patch I tested (#9 or so of the first link), there was a .1s delay
still, but nowhere near as bad as it is without the patch.

> > Though if the fix is as simple as tis makes it seem to be…
> > 
> >    
> > https://codereview.qt-project.org/#/c/90873/4/examples/opengl/hellogl/glwid
> > get.cpp
> 
> That fix to hellogl is basically equivalent to what I did in an experiment.
> Putting a formal fix into VTK is what I'm proposing here.
> 
> In the past, I expected compression to be a normal thing (and done by the X 
> server), but now I understand this is not how it works on the X level.  
> Compression is implemented by the client, and in this case, compression is 
> being expected of Qt.
> 
> Are we still interested in putting a fix into VTK for this?

If it doesn't break anything else and allows Qt5 < 5.6.0 to work on X,
then I don't see an issue. Otherwise, it will be X+VTK needs Qt5 >=
5.6.0 (something I'd be half a mind to put into the CMake code if 5.6.0
does indeed fix it since the problems are really just too much otherwise).

> Here is a request to *not* compress X events.
> https://bugreports.qt.io/browse/QTBUG-44964

Well, that can be the non-default behavior (that VTK likely doesn't need
to care about).

--Ben


More information about the vtk-developers mailing list