fix(viz): tactile controls in SightViewer doesn't work anymore once something is loaded
Description
When something (an image or a mesh) is loaded in SightViewer, the tactile controls don't work anymore.
Steps to reproduce
- Launch SightViewer
- With a touchscreen, click anywhere and notice it works. For example, click on the "Show/hide axis" on the bottom left, the axis do appear.
- Load anything in the scene. For example, load the VTK sphere using Load series > VTK > sight-data/sight/mesh/vtk/sphere.vtk.
- With a touchscreen, click anywhere and notice it doesn't work. For example, click on the "Show/hide axis" on the bottom left, the axis doesn't appear.
- With a mouse, click anywhere and notice it still works. For example, click on the "Show/hide axis" on the bottom left, the axis do appear.
I only tested on Ubuntu 22.04 with KDE Plasma 5.24.6. The bug doesn't seem to appear on GNOME.
Proposal
Maybe this issue is related to OpenGL context focus?
Functional specifications
The tactile controls should work even after something is loaded, the mouse controls should still work.
Technical specifications
Details of the implementation of the fix
Test plan
Manual testing, adding an automatic GUI test if it is possible.