From 246150d8b6177fda9aba47cba6089fcf548e0dab Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Mon, 14 Oct 2019 15:13:11 +0000 Subject: [PATCH] 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 20f4fc7c877472591cd77aeacb58645cf11f432a) --- src/shell-screenshot.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/shell-screenshot.c b/src/shell-screenshot.c index c7f0ed2b6..a7296e566 100644 --- a/src/shell-screenshot.c +++ b/src/shell-screenshot.c @@ -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)