[gnome-flashback/gnome-3-24] screenshot: don't include selection overlay
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback/gnome-3-24] screenshot: don't include selection overlay
- Date: Wed, 10 May 2017 18:07:33 +0000 (UTC)
commit 16941360b140830189d6390f6a864e10b2858539
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed May 10 21:06:07 2017 +0300
screenshot: don't include selection overlay
https://bugzilla.gnome.org/show_bug.cgi?id=780358
gnome-flashback/libscreenshot/gf-screenshot.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gnome-flashback/libscreenshot/gf-screenshot.c b/gnome-flashback/libscreenshot/gf-screenshot.c
index c031685..ae35e18 100644
--- a/gnome-flashback/libscreenshot/gf-screenshot.c
+++ b/gnome-flashback/libscreenshot/gf-screenshot.c
@@ -1173,9 +1173,17 @@ handle_select_area (GfDBusScreenshot *dbus_screenshot,
selected = gf_select_area_select (select_area, &x, &y, &width, &height);
g_object_unref (select_area);
+ gdk_flush ();
+
if (selected)
{
unscale_area (&x, &y, &width, &height);
+
+ /* wait 200ms to allow compositor finish redrawing selected area
+ * without selection overlay.
+ */
+ g_usleep (G_USEC_PER_SEC / 5);
+
gf_dbus_screenshot_complete_select_area (dbus_screenshot, invocation,
x, y, width, height);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]