From 8e72f51257c16478f9e360fc798de8eacbf94fee Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 8 Jan 2018 11:07:59 +0100 Subject: XCB: Undef KeyPress and KeyRelease also when not using xinput2 The defines come from X.h here, which is included via Xutil.h. Change-Id: I19887424cff28567fcbb1c352b42bb9d750b1928 Reviewed-by: Gatis Paeglis --- src/plugins/platforms/xcb/qxcbkeyboard.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins') diff --git a/src/plugins/platforms/xcb/qxcbkeyboard.cpp b/src/plugins/platforms/xcb/qxcbkeyboard.cpp index 9aedee109f..136faec855 100644 --- a/src/plugins/platforms/xcb/qxcbkeyboard.cpp +++ b/src/plugins/platforms/xcb/qxcbkeyboard.cpp @@ -61,6 +61,8 @@ #if QT_CONFIG(xcb_xlib) #include +#undef KeyPress +#undef KeyRelease #endif #ifndef XK_ISO_Left_Tab -- cgit v1.2.3