]> git.lyx.org Git - lyx.git/commit
Store correctly the window position with Wayland
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 12 Nov 2020 11:09:36 +0000 (12:09 +0100)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Mon, 30 Nov 2020 18:32:49 +0000 (13:32 -0500)
commitd418b6f4c8207cc84c7a3b890de5aec2c837a672
treed9573e5e23a2f75b79cd9d6a1077be46ce2c6b59
parentc9040100b5cb7c2580b34421aae2a8e53c43c054
Store correctly the window position with Wayland

To do this, hard-coded test for xcb had to be replaced with a call to
platformName(). Since this method does not exist in Qt4, we emulate
it.

Note that Qt5 uses xcb bindings for X11 system, while Qt4 relies on
older X11 bindings. We return platorm == "qt4x11" in this case.

Fixes bug #11746.

(cherry picked from commit 222a317dd243fb18f01bfa6e994902fee06ae3db)
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiApplication.h
src/frontends/qt4/GuiView.cpp
status.23x