]> git.lyx.org Git - lyx.git/commit
Add lyxrc option to force the use of backing store
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 16 Dec 2021 11:38:19 +0000 (12:38 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 13 Jan 2022 16:24:28 +0000 (17:24 +0100)
commit1def11d2966a72bcad9d33ef85f384cebd4e58d3
tree4295ecd0e9bb828bd04c4b38e24317fa200c9ea0
parent44555856087b9a02a0cc1e972784eefd8b5ff04f
Add lyxrc option to force the use of backing store

LyX relies on a a backing store to draw when running under macOS or
Wayland, because Qt arbitrarily overwrites parts of the workarea
before we paint (and we paint only the parts that need to be painted).
However it seems that this is also necessary on X11 when the WM theme
is translucid. Since there is no way that I know of to detect this
situation, this patch adds a LyXRC setting to manually select this
drawing strategy.

Note that using a backing store is not always a good solution, since
this disables subpixel aliasing.

At this point there is no UI for the variable.

Fixes bug #12119

(cherry picked from commit c213eb7f75d53165f55e64f0149fec833e5b5b5e)
(cherry picked from commit 1ed9257c6dc57fc11990b86d5774ac9a8e70cfa6)
lib/RELEASE-NOTES
src/LyXRC.cpp
src/LyXRC.h
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiApplication.h
src/frontends/qt4/GuiWorkArea.cpp
status.23x