From 26346a06eee6808f0005ea97fbe40230a7f8e5d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Tue, 1 Nov 2022 16:44:49 +0100 Subject: [PATCH] wayland/surface: Make meta_wayland_transaction_ensure_entry non-static Part-of: --- src/wayland/meta-wayland-transaction.c | 6 +++--- src/wayland/meta-wayland-transaction.h | 3 +++ src/wayland/meta-wayland-types.h | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/wayland/meta-wayland-transaction.c b/src/wayland/meta-wayland-transaction.c index 56aaf3923..cc77ea663 100644 --- a/src/wayland/meta-wayland-transaction.c +++ b/src/wayland/meta-wayland-transaction.c @@ -41,7 +41,7 @@ struct _MetaWaylandTransaction GHashTable *entries; }; -typedef struct _MetaWaylandTransactionEntry +struct _MetaWaylandTransactionEntry { /* Next committed transaction with entry for the same surface */ MetaWaylandTransaction *next_transaction; @@ -52,7 +52,7 @@ typedef struct _MetaWaylandTransactionEntry gboolean has_sub_pos; int x; int y; -} MetaWaylandTransactionEntry; +}; static MetaWaylandTransactionEntry * meta_wayland_transaction_get_entry (MetaWaylandTransaction *transaction, @@ -301,7 +301,7 @@ meta_wayland_transaction_commit (MetaWaylandTransaction *transaction) meta_wayland_transaction_maybe_apply (transaction); } -static MetaWaylandTransactionEntry * +MetaWaylandTransactionEntry * meta_wayland_transaction_ensure_entry (MetaWaylandTransaction *transaction, MetaWaylandSurface *surface) { diff --git a/src/wayland/meta-wayland-transaction.h b/src/wayland/meta-wayland-transaction.h index e05ff001a..a42300f8e 100644 --- a/src/wayland/meta-wayland-transaction.h +++ b/src/wayland/meta-wayland-transaction.h @@ -25,6 +25,9 @@ void meta_wayland_transaction_commit (MetaWaylandTransaction *transaction); +MetaWaylandTransactionEntry *meta_wayland_transaction_ensure_entry (MetaWaylandTransaction *transaction, + MetaWaylandSurface *surface); + void meta_wayland_transaction_add_placement_op (MetaWaylandTransaction *transaction, MetaWaylandSurface *surface, MetaWaylandSubsurfacePlacementOp *op); diff --git a/src/wayland/meta-wayland-types.h b/src/wayland/meta-wayland-types.h index c4db05b61..97623df7f 100644 --- a/src/wayland/meta-wayland-types.h +++ b/src/wayland/meta-wayland-types.h @@ -55,6 +55,7 @@ typedef struct _MetaWaylandSurface MetaWaylandSurface; typedef struct _MetaWaylandSurfaceState MetaWaylandSurfaceState; typedef struct _MetaWaylandTransaction MetaWaylandTransaction; +typedef struct _MetaWaylandTransactionEntry MetaWaylandTransactionEntry; typedef struct _MetaWaylandOutput MetaWaylandOutput;