aboutsummaryrefslogtreecommitdiffstats
path: root/matchbox2/mb-wm-main-context.h
diff options
context:
space:
mode:
Diffstat (limited to 'matchbox2/mb-wm-main-context.h')
-rw-r--r--matchbox2/mb-wm-main-context.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/matchbox2/mb-wm-main-context.h b/matchbox2/mb-wm-main-context.h
index b8be944..1f83fa5 100644
--- a/matchbox2/mb-wm-main-context.h
+++ b/matchbox2/mb-wm-main-context.h
@@ -21,7 +21,8 @@
#ifndef _HAVE_MB_MAIN_CONTEXT_H
#define _HAVE_MB_MAIN_CONTEXT_H
-#include <matchbox2/mb-wm.h>
+#include <matchbox2/mb-wm-object.h>
+#include <matchbox2/mb-window-manager.h>
#include <poll.h>
#define MB_WM_MAIN_CONTEXT(c) ((MBWMMainContext*)(c))
@@ -29,6 +30,14 @@
#define MB_WM_TYPE_MAIN_CONTEXT (mb_wm_main_context_class_type ())
#define MB_WM_IS_MAIN_CONTEXT(c) (MB_WM_OBJECT_TYPE(c)==MB_WM_TYPE_MAIN_CONTEXT)
+/* XXX: we have a circular dependency between mb-wm-main-context.h
+ * and mb-window-manager.h */
+#ifndef MB_WM_MAIN_CONTEXT_TYPEDEF_DEFINED
+typedef struct MBWMMainContext MBWMMainContext;
+#define MB_WM_MAIN_CONTEXT_TYPEDEF_DEFINED
+#endif
+typedef struct MBWMMainContextClass MBWMMainContextClass;
+
typedef Bool (*MBWMMainContextXEventFunc) (XEvent * xev, void * userdata);
typedef struct MBWMEventFuncs