4lex4 / scantailor-advanced

ScanTailor Advanced is the version that merges the features of the ScanTailor Featured and ScanTailor Enhanced versions, brings new ones and fixes.
GNU General Public License v3.0
1.15k stars 128 forks source link

Fix OpenGL rendering on Wayland #179

Closed mara004 closed 2 years ago

mara004 commented 3 years ago

Move away from the deprecated QGLWidget involving problematic native windows/surfaces (see https://doc.qt.io/qt-5/qopenglwidget.html#relation-to-qglwidget). Use the newer QOpenGLWidget instead.

I do not know any C++ and only built this fix using hints from other programs facing similar problems. Although it seems to work, the code is probably incomplete.

mara004 commented 2 years ago

When OpenGL is enabled without this patch, the view is transparent and there are visual glitches on Wayland. Here's a screenshot:

scantailor_wl_opengl