Fixup to 35e6608ce14d05973c6ceee4c2ee046d10af4aaf
authorJørgen Lind <jorgen.lind@nokia.com>
Wed, 6 Apr 2011 10:54:52 +0000 (12:54 +0200)
committerJørgen Lind <jorgen.lind@nokia.com>
Wed, 6 Apr 2011 10:56:16 +0000 (12:56 +0200)
src/qt-compositor/hardware_integration/xcomposite_share/xlibinclude.h

index 2e67fba..78c7c48 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef XLIBINCLUDE_H
+#define XLIBINCLUDE_H
+
 #include <QtCore/QEvent>
 #include <QtCore/QTextStream>
 #include <QtCore/QDataStream>
@@ -6,3 +9,28 @@
 #include <QtGui/QCursor>
 
 #include <X11/Xlib.h>
+
+enum {
+    XFocusOut = FocusOut,
+    XFocusIn = FocusIn,
+    XKeyPress = KeyPress,
+    XKeyRelease = KeyRelease,
+    XNone = None,
+    XRevertToParent = RevertToParent,
+    XGrayScale = GrayScale,
+    XCursorShape = CursorShape
+};
+#undef FocusOut
+#undef FocusIn
+#undef KeyPress
+#undef KeyRelease
+#undef None
+#undef RevertToParent
+#undef GrayScale
+#undef CursorShape
+
+#ifdef FontChange
+#undef FontChange
+#endif
+
+#endif //XLIBINCLUDE_H