[gnome-flashback/gnome-3-32] screenshot: fix area select shape region
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback/gnome-3-32] screenshot: fix area select shape region
- Date: Mon, 14 Oct 2019 05:54:54 +0000 (UTC)
commit a7a422b810667029fda8bdbd6af9c66c5d141169
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Oct 14 08:42:25 2019 +0300
screenshot: fix area select shape region
Shape region should be relative to window not screen/root.
https://gitlab.gnome.org/GNOME/gnome-flashback/issues/26
gnome-flashback/libscreenshot/gf-select-area.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-flashback/libscreenshot/gf-select-area.c b/gnome-flashback/libscreenshot/gf-select-area.c
index f477f30..494e590 100644
--- a/gnome-flashback/libscreenshot/gf-select-area.c
+++ b/gnome-flashback/libscreenshot/gf-select-area.c
@@ -175,8 +175,8 @@ motion_notify_event_cb (GtkWidget *widget,
cairo_region_t *region;
cairo_rectangle_int_t rectangle;
- rectangle.x = x;
- rectangle.y = y;
+ rectangle.x = 0;
+ rectangle.y = 0;
rectangle.width = width;
rectangle.height = height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]