mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
screen-cast-window-stream: Don't set the position property
It was not meant to be set for window streams, and was set to (0, 0) anyway. This removes the corresponding MetaScreenCastWindow API, as it's not needed anymore. https://gitlab.gnome.org/GNOME/mutter/merge_requests/413
This commit is contained in:
parent
870f38542d
commit
11bd847896
@ -116,16 +116,6 @@ meta_screen_cast_window_stream_set_parameters (MetaScreenCastStream *stream,
|
||||
{
|
||||
MetaScreenCastWindowStream *window_stream =
|
||||
META_SCREEN_CAST_WINDOW_STREAM (stream);
|
||||
MetaScreenCastWindow *screen_cast_window =
|
||||
META_SCREEN_CAST_WINDOW (meta_window_actor_from_window (window_stream->window));
|
||||
MetaRectangle bounds;
|
||||
|
||||
meta_screen_cast_window_get_buffer_bounds (screen_cast_window, &bounds);
|
||||
|
||||
g_variant_builder_add (parameters_builder, "{sv}",
|
||||
"position",
|
||||
g_variant_new ("(ii)",
|
||||
bounds.x, bounds.y));
|
||||
|
||||
g_variant_builder_add (parameters_builder, "{sv}",
|
||||
"size",
|
||||
|
@ -29,14 +29,6 @@ meta_screen_cast_window_default_init (MetaScreenCastWindowInterface *iface)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
meta_screen_cast_window_get_buffer_bounds (MetaScreenCastWindow *screen_cast_window,
|
||||
MetaRectangle *bounds)
|
||||
{
|
||||
META_SCREEN_CAST_WINDOW_GET_IFACE (screen_cast_window)->get_buffer_bounds (screen_cast_window,
|
||||
bounds);
|
||||
}
|
||||
|
||||
void
|
||||
meta_screen_cast_window_get_frame_bounds (MetaScreenCastWindow *screen_cast_window,
|
||||
MetaRectangle *bounds)
|
||||
|
@ -36,9 +36,6 @@ struct _MetaScreenCastWindowInterface
|
||||
{
|
||||
GTypeInterface parent_iface;
|
||||
|
||||
void (*get_buffer_bounds) (MetaScreenCastWindow *screen_cast_window,
|
||||
MetaRectangle *bounds);
|
||||
|
||||
void (*get_frame_bounds) (MetaScreenCastWindow *screen_cast_window,
|
||||
MetaRectangle *bounds);
|
||||
|
||||
@ -53,9 +50,6 @@ struct _MetaScreenCastWindowInterface
|
||||
uint8_t *data);
|
||||
};
|
||||
|
||||
void meta_screen_cast_window_get_buffer_bounds (MetaScreenCastWindow *screen_cast_window,
|
||||
MetaRectangle *bounds);
|
||||
|
||||
void meta_screen_cast_window_get_frame_bounds (MetaScreenCastWindow *screen_cast_window,
|
||||
MetaRectangle *bounds);
|
||||
|
||||
|
@ -1850,20 +1850,6 @@ meta_window_actor_from_window (MetaWindow *window)
|
||||
return META_WINDOW_ACTOR (meta_window_get_compositor_private (window));
|
||||
}
|
||||
|
||||
static void
|
||||
meta_window_actor_get_buffer_bounds (MetaScreenCastWindow *screen_cast_window,
|
||||
MetaRectangle *bounds)
|
||||
{
|
||||
MetaWindowActor *window_actor = META_WINDOW_ACTOR (screen_cast_window);
|
||||
ClutterActor *clutter_actor;
|
||||
|
||||
clutter_actor = CLUTTER_ACTOR (meta_window_actor_get_texture (window_actor));
|
||||
bounds->x = 0;
|
||||
bounds->y = 0;
|
||||
bounds->width = (int) clutter_actor_get_width (clutter_actor);
|
||||
bounds->height = (int) clutter_actor_get_height (clutter_actor);
|
||||
}
|
||||
|
||||
static void
|
||||
meta_window_actor_get_frame_bounds (MetaScreenCastWindow *screen_cast_window,
|
||||
MetaRectangle *bounds)
|
||||
@ -1978,7 +1964,6 @@ meta_window_actor_capture_into (MetaScreenCastWindow *screen_cast_window,
|
||||
static void
|
||||
screen_cast_window_iface_init (MetaScreenCastWindowInterface *iface)
|
||||
{
|
||||
iface->get_buffer_bounds = meta_window_actor_get_buffer_bounds;
|
||||
iface->get_frame_bounds = meta_window_actor_get_frame_bounds;
|
||||
iface->transform_relative_position = meta_window_actor_transform_relative_position;
|
||||
iface->capture_into = meta_window_actor_capture_into;
|
||||
|
Loading…
Reference in New Issue
Block a user