util: Adapt to ClutterCapture removal

It is not used anywhere by Mutter itself so move it here

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3088>
This commit is contained in:
Bilal Elmoussaoui 2024-01-04 09:18:41 +01:00 committed by Marge Bot
parent b5e5b67e22
commit f48729f6e0
2 changed files with 21 additions and 15 deletions

View File

@ -354,7 +354,7 @@ shell_util_create_pixbuf_from_data (const guchar *data,
typedef const gchar *(*ShellGLGetString) (GLenum); typedef const gchar *(*ShellGLGetString) (GLenum);
cairo_surface_t * cairo_surface_t *
shell_util_composite_capture_images (ClutterCapture *captures, shell_util_composite_capture_images (StCapture *captures,
int n_captures, int n_captures,
int x, int x,
int y, int y,
@ -378,7 +378,7 @@ shell_util_composite_capture_images (ClutterCapture *captures,
for (i = 0; i < n_captures; i++) for (i = 0; i < n_captures; i++)
{ {
ClutterCapture *capture = &captures[i]; StCapture *capture = &captures[i];
cairo_save (cr); cairo_save (cr);

View File

@ -11,6 +11,12 @@
G_BEGIN_DECLS G_BEGIN_DECLS
typedef struct _StCapture
{
cairo_surface_t *image;
MtkRectangle rect;
} StCapture;
void shell_util_set_hidden_from_pick (ClutterActor *actor, void shell_util_set_hidden_from_pick (ClutterActor *actor,
gboolean hidden); gboolean hidden);
@ -46,7 +52,7 @@ GdkPixbuf *shell_util_create_pixbuf_from_data (const guchar *data,
int height, int height,
int rowstride); int rowstride);
cairo_surface_t * shell_util_composite_capture_images (ClutterCapture *captures, cairo_surface_t * shell_util_composite_capture_images (StCapture *captures,
int n_captures, int n_captures,
int x, int x,
int y, int y,