Accepting request 116476 from home:Zaitor:branches:GNOME:Factory
Added patch to fix upstream bug with extensions in some cases - Now includes a .changes entery... OBS-URL: https://build.opensuse.org/request/show/116476 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/mutter?expand=0&rev=94
This commit is contained in:
parent
0e26c7ab86
commit
1cd3e878d3
52
mutter-fix-crash-when-frame-is-NULL.patch
Normal file
52
mutter-fix-crash-when-frame-is-NULL.patch
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
From c669a3892e377daaf31a574618a4f8566bd9df61 Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Owen W. Taylor" <otaylor@fishsoup.net>
|
||||||
|
Date: Tue, 1 May 2012 13:40:08 -0400
|
||||||
|
Subject: [PATCH] meta_window_move_frame(): fix crash when frame is NULL
|
||||||
|
|
||||||
|
When meta_frame_calc_borders() was made to take a NULL frame argument,
|
||||||
|
a crash was accidentally introduced into meta_window_move_frame().
|
||||||
|
|
||||||
|
This partially reverts 8c1b2d5.
|
||||||
|
|
||||||
|
https://bugzilla.gnome.org/show_bug.cgi?id=675254
|
||||||
|
---
|
||||||
|
src/core/window.c | 22 ++++++++++++----------
|
||||||
|
1 file changed, 12 insertions(+), 10 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/core/window.c b/src/core/window.c
|
||||||
|
index 08e413c..e51de1b 100644
|
||||||
|
--- a/src/core/window.c
|
||||||
|
+++ b/src/core/window.c
|
||||||
|
@@ -5080,18 +5080,20 @@ meta_window_move_frame (MetaWindow *window,
|
||||||
|
{
|
||||||
|
int x = root_x_nw;
|
||||||
|
int y = root_y_nw;
|
||||||
|
- MetaFrameBorders borders;
|
||||||
|
-
|
||||||
|
- meta_frame_calc_borders (window->frame, &borders);
|
||||||
|
|
||||||
|
- /* root_x_nw and root_y_nw correspond to where the top of
|
||||||
|
- * the visible frame should be. Offset by the distance between
|
||||||
|
- * the origin of the window and the origin of the enclosing
|
||||||
|
- * window decorations.
|
||||||
|
- */
|
||||||
|
- x += window->frame->child_x - borders.invisible.left;
|
||||||
|
- y += window->frame->child_y - borders.invisible.top;
|
||||||
|
+ if (window->frame)
|
||||||
|
+ {
|
||||||
|
+ MetaFrameBorders borders;
|
||||||
|
+ meta_frame_calc_borders (window->frame, &borders);
|
||||||
|
|
||||||
|
+ /* root_x_nw and root_y_nw correspond to where the top of
|
||||||
|
+ * the visible frame should be. Offset by the distance between
|
||||||
|
+ * the origin of the window and the origin of the enclosing
|
||||||
|
+ * window decorations.
|
||||||
|
+ */
|
||||||
|
+ x += window->frame->child_x - borders.invisible.left;
|
||||||
|
+ y += window->frame->child_y - borders.invisible.top;
|
||||||
|
+ }
|
||||||
|
meta_window_move (window, user_op, x, y);
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
1.7.10
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat May 5 07:50:00 UTC 2012 - zaitor@opensuse.org
|
||||||
|
|
||||||
|
- Add mutter-fix-crash-when-frame-is-NULL.patch: fixes crashes in
|
||||||
|
various extensions.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 18 07:37:39 UTC 2012 - vuntz@opensuse.org
|
Wed Apr 18 07:37:39 UTC 2012 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@ License: GPL-2.0+
|
|||||||
Group: System/GUI/GNOME
|
Group: System/GUI/GNOME
|
||||||
Url: http://www.gnome.org
|
Url: http://www.gnome.org
|
||||||
Source: http://download.gnome.org/sources/mutter/3.4/%{name}-%{version}.tar.xz
|
Source: http://download.gnome.org/sources/mutter/3.4/%{name}-%{version}.tar.xz
|
||||||
|
# PATCH-FIX-UPSTREAM mutter-fix-crash-when-frame-is-NULL.patch bgo#675254 zaitor@opensuse.org -- fixes crashes in extensions.
|
||||||
|
Patch0: mutter-fix-crash-when-frame-is-NULL.patch
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gnome-doc-utils-devel
|
BuildRequires: gnome-doc-utils-devel
|
||||||
BuildRequires: gobject-introspection-devel >= 0.9.5
|
BuildRequires: gobject-introspection-devel >= 0.9.5
|
||||||
@ -88,6 +90,7 @@ to develop applications that require these.
|
|||||||
%lang_package
|
%lang_package
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
translation-update-upstream
|
translation-update-upstream
|
||||||
|
|
||||||
%if 0%{?BUILD_FROM_VCS}
|
%if 0%{?BUILD_FROM_VCS}
|
||||||
|
Loading…
Reference in New Issue
Block a user