Package: mutter
Version: 3.22.4-1
Severity: normal
Tags: patch

Dear maintainer,

Versions before mutter 3.24 are affected by a bug making gnome-shell report the 
wrong x-coordinate of its elements via at-spi. For details, see: 

* https://bugzilla.redhat.com/show_bug.cgi?id=1439194
* https://bugzilla.gnome.org/show_bug.cgi?id=781902

Please consider backporting the fix by applying the two attached patches (from 
the GNOME ticket) to mutter in Debian Stretch!

Cheers!

--- System information. ---
Architecture: 
Kernel:       Linux 4.9.0-2-amd64

Debian Release: 9.0
  500 unstable        ftp.se.debian.org 
  500 unstable        deb.torproject.org 
  500 tor-experimental-0.3.0.x-sid deb.torproject.org 
  500 testing         ftp.se.debian.org 
  500 stable          ftp.se.debian.org 
  100 jessie-backports ftp.se.debian.org 

--- Package information. ---
Package's Depends field is empty.

Package's Recommends field is empty.

Package's Suggests field is empty.
From 0fd9e38175e26ba30dfdc593e6715606ed4779aa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuell...@gnome.org>
Date: Fri, 28 Apr 2017 17:12:40 +0200
Subject: [PATCH] cally: Fix translation to screen coordinates

Due to an accidental swap of an else statement and a preprocessor #else,
the output x coordinate is currently only set when not using the X11
windowing system, whoops.

https://bugzilla.gnome.org/show_bug.cgi?id=781902
---
 clutter/clutter/cally/cally-actor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clutter/clutter/cally/cally-actor.c b/clutter/clutter/cally/cally-actor.c
index fe3e27433..8ff5b09e1 100644
--- a/clutter/clutter/cally/cally-actor.c
+++ b/clutter/clutter/cally/cally-actor.c
@@ -780,8 +780,8 @@ _cally_actor_get_top_level_origin (ClutterActor *actor,
         g_warning ("[x11] We were not able to get proper absolute "
                    "position of the stage");
     }
-  else
 #else
+  else
     {
       static gboolean yet_warned = FALSE;
 
-- 
2.12.2
From bfe06d79d85a7361b60997b6ba6fe6cde2194c84 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuell...@gnome.org>
Date: Fri, 28 Apr 2017 22:25:54 +0200
Subject: [PATCH] cally: Fix compilation without X11 backend

Commit 0fd9e38175 fixed setting the out parameter for the x coordinate
when using the X11 backend, but broke compilation when the backend is
not available ...
Really fix the issue by running the X11-specific code when the X11
backend is available and in use, and display the one-time warning
otherwise.

https://bugzilla.gnome.org/show_bug.cgi?id=781902
---
 clutter/clutter/cally/cally-actor.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/clutter/clutter/cally/cally-actor.c b/clutter/clutter/cally/cally-actor.c
index 8ff5b09e1..f341d3616 100644
--- a/clutter/clutter/cally/cally-actor.c
+++ b/clutter/clutter/cally/cally-actor.c
@@ -780,8 +780,8 @@ _cally_actor_get_top_level_origin (ClutterActor *actor,
         g_warning ("[x11] We were not able to get proper absolute "
                    "position of the stage");
     }
-#else
   else
+#endif
     {
       static gboolean yet_warned = FALSE;
 
@@ -793,7 +793,6 @@ _cally_actor_get_top_level_origin (ClutterActor *actor,
                      "atk_component_get_extents() with ATK_XY_SCREEN.");
         }
     }
-#endif
 
   if (xp)
     *xp = x;
-- 
2.12.2

Reply via email to