summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2012-05-14 00:02:26 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2012-05-14 00:02:26 +0000
commit51acef4302b7e8c3fef7ba026860e2d6bdfe3023 (patch)
tree6877ea4c76a04e87b1c426953a4836e836271c1f /x11-wm/mutter/files
parentVersion bump for gnome-3.4. Drop old. (diff)
downloadgentoo-2-51acef4302b7e8c3fef7ba026860e2d6bdfe3023.tar.gz
gentoo-2-51acef4302b7e8c3fef7ba026860e2d6bdfe3023.tar.bz2
gentoo-2-51acef4302b7e8c3fef7ba026860e2d6bdfe3023.zip
Version bump for gnome-3.4. Settings moved from gconf to gsettings. Drop old.
(Portage version: 2.2.0_alpha104/cvs/Linux x86_64)
Diffstat (limited to 'x11-wm/mutter/files')
-rw-r--r--x11-wm/mutter/files/mutter-3.4.1-meta_window_move_frame-crash.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/x11-wm/mutter/files/mutter-3.4.1-meta_window_move_frame-crash.patch b/x11-wm/mutter/files/mutter-3.4.1-meta_window_move_frame-crash.patch
new file mode 100644
index 000000000000..1d23c1bf3064
--- /dev/null
+++ b/x11-wm/mutter/files/mutter-3.4.1-meta_window_move_frame-crash.patch
@@ -0,0 +1,53 @@
+From 5e453f41befcd86f96ab0f0493fa64ac0f45d87b 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 files changed, 12 insertions(+), 10 deletions(-)
+
+diff --git a/src/core/window.c b/src/core/window.c
+index 204bc0c..9e4b93c 100644
+--- a/src/core/window.c
++++ b/src/core/window.c
+@@ -5108,18 +5108,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.8.6
+