From 50058b79d1b49f1cd45757cb6a21700ecba19e1b Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Tue, 28 May 2024 11:01:44 +0200 Subject: [PATCH] x11: Don't expose MetaFrame type Part-of: --- src/meta/types.h | 1 - src/x11/meta-x11-frame.h | 4 ++-- src/x11/window-x11.h | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/meta/types.h b/src/meta/types.h index cbe2a9a3d..d994fb2d2 100644 --- a/src/meta/types.h +++ b/src/meta/types.h @@ -24,7 +24,6 @@ typedef struct _MetaContext MetaContext; typedef struct _MetaCompositor MetaCompositor; typedef struct _MetaDisplay MetaDisplay; typedef struct _MetaX11Display MetaX11Display; -typedef struct _MetaFrame MetaFrame; typedef struct _MetaWindow MetaWindow; typedef struct _MetaWorkspace MetaWorkspace; typedef struct _MetaLaters MetaLaters; diff --git a/src/x11/meta-x11-frame.h b/src/x11/meta-x11-frame.h index de1ce909b..e25c86032 100644 --- a/src/x11/meta-x11-frame.h +++ b/src/x11/meta-x11-frame.h @@ -25,7 +25,7 @@ #include "x11/meta-sync-counter.h" -struct _MetaFrame +typedef struct _MetaFrame { /* window we frame */ MetaWindow *window; @@ -51,7 +51,7 @@ struct _MetaFrame int bottom_height; guint borders_cached : 1; -}; +} MetaFrame; void meta_window_ensure_frame (MetaWindow *window); void meta_window_destroy_frame (MetaWindow *window); diff --git a/src/x11/window-x11.h b/src/x11/window-x11.h index c6cdf5c08..5fd8517b4 100644 --- a/src/x11/window-x11.h +++ b/src/x11/window-x11.h @@ -28,6 +28,7 @@ #include "meta/compositor.h" #include "meta/window.h" #include "x11/meta-sync-counter.h" +#include "x11/meta-x11-frame.h" G_BEGIN_DECLS