]> git.lyx.org Git - lyx.git/commit
Get rid of QPA_XCB define
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 29 Aug 2024 09:15:26 +0000 (11:15 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 30 Aug 2024 09:27:17 +0000 (11:27 +0200)
commit18c310a8cf60ebc8cab27aeea6fc0a6e1fcc7fcc
tree7cfc51f43b72cfb68ce221120ecdb89d46f4de0c
parentce9de28f06eb770ae440992fb8ca8b98a07c1cfd
Get rid of QPA_XCB define

Since the platform is selected at run time (e.g. xcb vs. Wayland), it
is not a good idea to decide at compile time what code is run. Another
example is on macOS, where having xcb libraries available will lead to
lauching the Xquartz whenever LyX is running.

With this patch, things are separated:
- the code is run when run-time platform is "xcb".
- the support code is compiled in when xcb header and libraries are
  available.

Fixes ticket #13086.
config/qt.m4
src/frontends/qt/GuiApplication.cpp
src/frontends/qt/GuiApplication.h