Files
meta-qt5/recipes-qt/qt5/qtbase/0005-qeglplatformintegration-Undefine-CursorShape-from-X..patch
Martin Jansa 44d180c093 qtbase: refresh patches
* based on b5.5.0 branches in https://github.com/meta-qt5/qtbase

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-08-25 11:56:33 +02:00

31 lines
1.1 KiB
Diff

From 0b4d9044218df6e7fb700be6cfd21b4aaab24b18 Mon Sep 17 00:00:00 2001
From: Martin Jansa <Martin.Jansa@gmail.com>
Date: Wed, 19 Mar 2014 18:32:28 +0100
Subject: [PATCH 05/10] qeglplatformintegration: Undefine CursorShape from X.h
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
src/platformsupport/eglconvenience/qeglplatformintegration_p.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/platformsupport/eglconvenience/qeglplatformintegration_p.h b/src/platformsupport/eglconvenience/qeglplatformintegration_p.h
index 42fbf8c..8950f2d 100644
--- a/src/platformsupport/eglconvenience/qeglplatformintegration_p.h
+++ b/src/platformsupport/eglconvenience/qeglplatformintegration_p.h
@@ -50,6 +50,12 @@
#include <qpa/qplatformnativeinterface.h>
#include <EGL/egl.h>
+// Undefine CursorShape from X.h, which is causing breakage in Qt::CursorShape in platformsupport/eglconvenience/
+// /usr/include/X11/X.h:#define CursorShape 0 /* largest size that can be displayed */
+#ifdef CursorShape
+#undef CursorShape
+#endif
+
QT_BEGIN_NAMESPACE
class QEGLPlatformWindow;
--
2.5.0