]> 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)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 14 Nov 2020 16:55:59 +0000 (17:55 +0100)
commit222a317dd243fb18f01bfa6e994902fee06ae3db
tree1426437dcf94559766b089b2ad72fd1c054eced3
parent21ca33745e75c8e6af893f6e5fae2287e1757952
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.
src/frontends/qt/GuiApplication.cpp
src/frontends/qt/GuiApplication.h
src/frontends/qt/GuiView.cpp