Backport a fix to make gnome-screenshot --area work
This commit is contained in:
parent
69d350d259
commit
7d014dec44
@ -0,0 +1,33 @@
|
||||
From 5ec5e294226ef8ef47af1b56b4c0c349aea7d607 Mon Sep 17 00:00:00 2001
|
||||
From: Rui Matos <tiagomatos@gmail.com>
|
||||
Date: Wed, 21 Sep 2016 15:06:08 +0200
|
||||
Subject: [PATCH] clutter/stage: Fix framebuffer capture origin offset (again)
|
||||
|
||||
Commit 5fbb4793017b1891f0de4720a9793e8cfc1c8483 was wrong too. What we
|
||||
really want to do here is getting view relative coordinates given the
|
||||
view's and the rectangle's global coordinates so we need to subtract
|
||||
the view's origin from the rectangle's.
|
||||
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=771502
|
||||
---
|
||||
clutter/clutter/clutter-stage.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
|
||||
index 1d2c0bc..21968b9 100644
|
||||
--- a/clutter/clutter/clutter-stage.c
|
||||
+++ b/clutter/clutter/clutter-stage.c
|
||||
@@ -4712,8 +4712,8 @@ capture_view (ClutterStage *stage,
|
||||
clutter_stage_view_get_layout (view, &view_layout);
|
||||
|
||||
cogl_framebuffer_read_pixels_into_bitmap (framebuffer,
|
||||
- view_layout.x + rect->x,
|
||||
- view_layout.y + rect->y,
|
||||
+ rect->x - view_layout.x,
|
||||
+ rect->y - view_layout.y,
|
||||
COGL_READ_PIXELS_COLOR_BUFFER,
|
||||
bitmap);
|
||||
|
||||
--
|
||||
2.7.4
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Name: mutter
|
||||
Version: 3.22.1
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Window and compositing manager based on Clutter
|
||||
|
||||
License: GPLv2+
|
||||
@ -15,6 +15,8 @@ Source0: http://download.gnome.org/sources/%{name}/3.22/%{name}-%{version}
|
||||
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=772422
|
||||
Patch0: 0001-Use-eglGetPlatformDisplay.patch
|
||||
# Backported from upstream
|
||||
Patch1: 0001-clutter-stage-Fix-framebuffer-capture-origin-offset-.patch
|
||||
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: pango-devel
|
||||
@ -107,6 +109,7 @@ the functionality of the installed %{name} package.
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
autoreconf -f -i
|
||||
@ -181,6 +184,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
||||
%{_datadir}/mutter/tests
|
||||
|
||||
%changelog
|
||||
* Tue Oct 18 2016 Kalev Lember <klember@redhat.com> - 3.22.1-3
|
||||
- Backport a fix to make gnome-screenshot --area work
|
||||
|
||||
* Tue Oct 11 2016 Adam Jackson <ajax@redhat.com> - 3.22.1-2
|
||||
- Prefer eglGetPlatformDisplay() to eglGetDisplay()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user