shell-screenshots: Do not pass a clip for window screenshots

Design team wants us not to clip away the shadows, lets do that.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/762


(cherry picked from commit 20f4fc7c87)
This commit is contained in:
Robert Mader 2019-10-14 15:13:11 +00:00 committed by Jonas Ådahl
parent 072a9a4842
commit 246150d8b6

View File

@ -457,7 +457,6 @@ grab_window_screenshot (ClutterActor *stage,
ClutterActor *window_actor;
gfloat actor_x, actor_y;
MetaRectangle rect;
cairo_rectangle_int_t clip;
window_actor = CLUTTER_ACTOR (meta_window_get_compositor_private (window));
clutter_actor_get_position (window_actor, &actor_x, &actor_y);
@ -467,16 +466,10 @@ grab_window_screenshot (ClutterActor *stage,
if (!priv->include_frame)
meta_window_frame_rect_to_client_rect (window, &rect, &rect);
priv->screenshot_area.x = rect.x;
priv->screenshot_area.y = rect.y;
clip.x = rect.x - (gint) actor_x;
clip.y = rect.y - (gint) actor_y;
clip.width = priv->screenshot_area.width = rect.width;
clip.height = priv->screenshot_area.height = rect.height;
priv->screenshot_area = rect;
priv->image = meta_window_actor_get_image (META_WINDOW_ACTOR (window_actor),
&clip);
NULL);
priv->datetime = g_date_time_new_now_local ();
if (priv->include_cursor)