aboutsummaryrefslogtreecommitdiffstats
path: root/matchbox2/mb-wm-comp-mgr.h
diff options
context:
space:
mode:
Diffstat (limited to 'matchbox2/mb-wm-comp-mgr.h')
-rw-r--r--matchbox2/mb-wm-comp-mgr.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/matchbox2/mb-wm-comp-mgr.h b/matchbox2/mb-wm-comp-mgr.h
index 98e9cbd..6e09043 100644
--- a/matchbox2/mb-wm-comp-mgr.h
+++ b/matchbox2/mb-wm-comp-mgr.h
@@ -21,16 +21,36 @@
#ifndef _HAVE_MB_WM_COMP_MGR_H
#define _HAVE_MB_WM_COMP_MGR_H
+#include <matchbox2/mb-wm-client.h>
+
#include <X11/extensions/Xdamage.h>
+/* XXX: We have a circular dependency between mb-wm-comp-mgr.h
+ * and mb-wm-client.h */
+#ifndef MB_WM_CLIENT_TYPEDEF_DEFINED
+typedef struct MBWindowManagerClient MBWindowManagerClient;
+#define MB_WM_CLIENT_TYPEDEF_DEFINED
+#endif
+
#define MB_WM_COMP_MGR(c) ((MBWMCompMgr*)(c))
#define MB_WM_COMP_MGR_CLASS(c) ((MBWMCompMgrClass*)(c))
#define MB_WM_TYPE_COMP_MGR (mb_wm_comp_mgr_class_type ())
+/* XXX: We have a circular dependency between mb-wm-comp-mgr.h
+ * and mb-wm-client.h */
+#ifndef MB_WM_COMP_MGR_TYPEDEF_DEFINED
+typedef struct MBWMCompMgr MBWMCompMgr;
+#define MB_WM_COMP_MGR_TYPEDEF_DEFINED
+#endif
+typedef struct MBWMCompMgrClass MBWMCompMgrClass;
+
#define MB_WM_COMP_MGR_CLIENT(c) ((MBWMCompMgrClient*)(c))
#define MB_WM_COMP_MGR_CLIENT_CLASS(c) ((MBWMCompMgrClientClass*)(c))
#define MB_WM_TYPE_COMP_MGR_CLIENT (mb_wm_comp_mgr_client_class_type ())
+typedef struct MBWMCompMgrClient MBWMCompMgrClient;
+typedef struct MBWMCompMgrClientClass MBWMCompMgrClientClass;
+
struct MBWMCompMgr
{
MBWMObject parent;