Skip to content

Commit da95311

Browse files
authored
ui: classic: Include xcb/xcb.h only when X11 is enabled (#1259)
The header may be not available when X11 is disabled. Fixes fcitx5 build without X11 libraries. Fixes: e723881 ("Clang-tidy clean up for classic ui") Signed-off-by: Yao Zi <[email protected]>
1 parent 96cc9c2 commit da95311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/ui/classic/classicui.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <utility>
2121
#include <vector>
2222
#include <cairo.h>
23-
#include <xcb/xcb.h>
2423
#include "fcitx-config/iniparser.h"
2524
#include "fcitx-config/rawconfig.h"
2625
#include "fcitx-utils/color.h"
@@ -45,6 +44,7 @@
4544
#include "plasmathemewatchdog.h"
4645
#include "theme.h"
4746
#ifdef ENABLE_X11
47+
#include <xcb/xcb.h>
4848
#include "xcb_public.h"
4949
#include "xcbui.h"
5050
#endif

0 commit comments

Comments
 (0)