Index: base/event_types.h |
diff --git a/base/event_types.h b/base/event_types.h |
index a1b78f6db2cff8fd72e9f2434bede7662aa04ccd..02e0f2bd82d20d6eab46a4fc7c9d2e86c1a8d172 100644 |
--- a/base/event_types.h |
+++ b/base/event_types.h |
@@ -17,6 +17,8 @@ union WaylandEvent; |
} |
} |
#elif defined(USE_X11) |
+#include <X11/Xdefs.h> |
+typedef XID Window; |
typedef union _XEvent XEvent; |
#endif |
@@ -25,12 +27,16 @@ namespace base { |
// Cross platform typedefs for native event types. |
#if defined(OS_WIN) |
typedef MSG NativeEvent; |
+typedef HWND NativeWindow; |
#elif defined(USE_WAYLAND) |
typedef wayland::WaylandEvent* NativeEvent; |
+// TODO: typedef NativeWindow. |
#elif defined(USE_X11) |
typedef XEvent* NativeEvent; |
+typedef ::Window NativeWindow; |
#else |
typedef void* NativeEvent; |
+typedef void* NativeWindow; |
#endif |
} // namespace base |