gentoo/app-i18n/fcitx/files/fcitx-5.1.12-make-x11-dependencies-optional.patch
Andreas Sturmlechner f3ed3e2481
app-i18n/fcitx: re-add 5.1.12 for a bit
Bug: https://bugs.gentoo.org/963229
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-10-04 17:17:55 +02:00

25 lines
623 B
Diff

https://github.com/fcitx/fcitx5/pull/1259
The header may be not available when X11 is disabled. Fixes fcitx5
build without X11 libraries.
Signed-off-by: Yao Zi <ziyao@disroot.org>
--- a/src/ui/classic/classicui.cpp
+++ b/src/ui/classic/classicui.cpp
@@ -20,7 +20,6 @@
#include <utility>
#include <vector>
#include <cairo.h>
-#include <xcb/xcb.h>
#include "fcitx-config/iniparser.h"
#include "fcitx-config/rawconfig.h"
#include "fcitx-utils/color.h"
@@ -45,6 +44,7 @@
#include "plasmathemewatchdog.h"
#include "theme.h"
#ifdef ENABLE_X11
+#include <xcb/xcb.h>
#include "xcb_public.h"
#include "xcbui.h"
#endif