Den 20.05.2019 15:45, skrev Jean-Marc Lasgouttes:
Le 26/04/2019 à 12:04, Helge Hafting a écrit :
LyX 2.3.2 in arch linux supports wayland rendering (not using X11) by setting QT_QPA_PLATFORM=wayland-egl

This mostly works fine, with one exception: Now and then, large parts of the main window shows my background image instead of lines from the document.

Hi Helge,

I tried a wayland session on my laptop, and I cannot reproduce the issue. Do you have an idea of when "now and then" is? A recipe would be great.

1. Make sure wayland is installed, as well as the qt support for wayland, and the sway "window manager/compositor"

2. Set a background image for sway, in the file ~/.sway/config use this line:

output * bg picture.jpg

3. Start sway (a wayland 'window manager') I don't know if it also happens with weston or other alternatives

4. In a terminal, launch LyX like this:

QT_QPA_PLATFORM=wayland-egl lyx

Setting QT_QPA_PLATFORM is necessary. Without it, qt will use an x11 session against xwayland, and the bug won't show. But  getting rid of the X11 compatibility layer is a long term goal, so I try running everything native in wayland.

I can only guess this environment setting exists because QT rendering on wayland is ... experimental?

5. In LyX, open the User Guide

6. Scroll down using the down arrow. (NOT page down).

The bug may show now and then. Especially when there are lots of multi-line paragraphs in view. Note that the paragraph containing the cursor is always ok, but the others may blank out. Non-text (images, formulas and hard spaces do not blank out. Even mis-spelt words with red underline will not blank out. Only pure text blanks out.

A page down paints the entire screen, without fault. Moving the cursor using the arrow keys may cause some unrelated paragraphs to blank out - this is not merely wrong, but also unnecessary drawing effort. Positioning the cursor using the mouse may change things - usually most paragraphs show correctly. But not always. Arrows keys is the easiest way to trigger the "see through paragraphs".


Helge Hafting

Reply via email to