Hello community,

here is the log from the commit of package mutter for openSUSE:Factory checked 
in at 2013-01-22 17:37:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mutter (Old)
 and      /work/SRC/openSUSE:Factory/.mutter.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mutter", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/mutter/mutter.changes    2012-11-25 
13:09:15.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.mutter.new/mutter.changes       2013-01-22 
17:37:08.000000000 +0100
@@ -1,0 +2,7 @@
+Mon Jan 21 23:43:46 UTC 2013 - [email protected]
+
+- Add mutter-stop-jumping-windows.patch, windows might in some
+  cases jump from one monitor to an other, this patch fixes this.
+  (bgo#556696).
+
+-------------------------------------------------------------------

New:
----
  mutter-stop-jumping-windows.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mutter.spec ++++++
--- /var/tmp/diff_new_pack.LX0V55/_old  2013-01-22 17:37:10.000000000 +0100
+++ /var/tmp/diff_new_pack.LX0V55/_new  2013-01-22 17:37:10.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package mutter
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,8 @@
 Group:          System/GUI/GNOME
 Url:            http://www.gnome.org
 Source:         
http://download.gnome.org/sources/mutter/3.6/%{name}-%{version}.tar.xz
+# PATCH-FIX-UPSTREAM mutter-stop-jumping-windows.patch bgo#556696 
[email protected] -- Stop windows from jumping spontaneously from one monitor 
to another.
+Patch0:         mutter-stop-jumping-windows.patch
 BuildRequires:  fdupes
 BuildRequires:  gobject-introspection-devel >= 0.9.5
 BuildRequires:  intltool
@@ -122,6 +124,7 @@
 %lang_package
 %prep
 %setup -q
+%patch0 -p1
 translation-update-upstream
 
 %if 0%{?BUILD_FROM_VCS}


++++++ mutter-stop-jumping-windows.patch ++++++
>From 0dee738a43e4fb4c3d5de5e3a55a4033faa9d3fa Mon Sep 17 00:00:00 2001
From: Alban Crequy <[email protected]>
Date: Fri, 23 Nov 2012 00:06:22 +0000
Subject: Initialize window->user_rect in the initial placement

The window positioning is delayed in idle_move_resize() in case the application
resizes/maximizes its window quickly after its creation. The delayed
positioning uses window->user_rect because of bug 426519 comment 3 (see
meta_window_move_resize_now()).

user_rect was not set in the initial positioning, causing the delayed
positioning unable to know which monitor we use for this window. As a
consequence, the window could jump spontaneously from one monitor to another.

With this patch, the window does not jump anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=556696
---
diff --git a/src/core/constraints.c b/src/core/constraints.c
index 2857f67..606baea 100644
--- a/src/core/constraints.c
+++ b/src/core/constraints.c
@@ -571,6 +571,11 @@ place_window_if_needed(MetaWindow     *window,
                        .083 * info->work_area_monitor.height;
             }
 
+          /* idle_move_resize() uses the user_rect, so make sure it uses the
+           * placed coordinates (bug #556696).
+           */
+          window->user_rect = info->current;
+
           if (window->maximize_horizontally_after_placement ||
               window->maximize_vertically_after_placement)
             meta_window_maximize_internal (window,   
--
cgit v0.9.0.2

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to